11-12-2013
I have run single-thread integer and FPU benchmarks on Niagara T1 and T2 processors,
and compared with various other Sparc systems (M series and older Sparc Fire systems).
The factor (execution speed versus clock rate) was about 0.5.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Please find the attached scriplet and suggest me to fix the bug in this.
-----------------------------------
noofdirs=`ls *.tar | wc -l`
if ; then
let i=1
while ( $i <= $noofdirs ) ;
do
echo $i
mkdir $i
file1=`ls *.tar | head -1`
mv $file1 $i
i =... (2 Replies)
Discussion started by: sharif
2 Replies
2. Shell Programming and Scripting
HI,
I would like to know how to compare two files and replace non-matching lines with "_" .
I can get non-mathing lines with
grep -v -f file1 file2
i just want to knw how to display 'file2' with non-matching lines from 'file1' replaced by "_"
for exmaple
file1:
a
b
c
d
... (2 Replies)
Discussion started by: maddy81
2 Replies
3. Shell Programming and Scripting
Hi All
I have to files
cat a.txt
AAA
BBB
CCC
DDD
and
cat b.txt
AAA
CCC
EEE
i want to compare these two files and o/p should have content of file a.txt which is not in file b.txt
c.txt
BBB
DDD
Please help me (1 Reply)
Discussion started by: aaysa123
1 Replies
4. Shell Programming and Scripting
Hi All
I have to files
cat a.txt
AAA
BBB
CCC
DDD
and
cat b.txt
AAA
CCC
EEE
i want to compare these two files and o/p should have content of file a.txt which is not in file b.txt
c.txt
BBB
DDD
Please help me (3 Replies)
Discussion started by: aaysa123
3 Replies
5. UNIX for Advanced & Expert Users
File Structure
file1.txt.arch
029429288,1,,,02087400376,N,02087400376,N,0,02087400376,N,0,0,8010,08000151736,U,N,,08000151736,U,20100726111237,20100726111237,0,20100726111651,00004140,16,16,10,N;... (1 Reply)
Discussion started by: ravigupta2u
1 Replies
6. Shell Programming and Scripting
I have a string like ab or abc of whatever length. But i want to know whether another string ( for example, abcfghijkl, OR a<space> bcfghijkl ab<space> cfghijkl OR a<space>bcfghijkl OR ab<space> c<space> fghijkl ) starts with ab or abc... space might existing on the longer string... If so, i... (1 Reply)
Discussion started by: nram_krishna@ya
1 Replies
7. Shell Programming and Scripting
I want to compare two strings using awk dynamically without trimming the spaces and want to find the count of matching string.
Input Strings file:
File1 content (file1):
" a "
" a2 "
File2 content (file2):
" a "
" a "
" a2 "
" b2 "
" c2 "... (3 Replies)
Discussion started by: AhmedLakadkutta
3 Replies
8. Shell Programming and Scripting
I have two files. one files contain counts and second contain string. Now i have to compare two string . if two string are same i have to add count. If strings are same more than once i have to display final output.
like this
>Count.txt
1
3
12
4
5
6
1
>strings.txt
AA
BB
BB... (1 Reply)
Discussion started by: pjlotiya
1 Replies
9. UNIX for Advanced & Expert Users
Hi,
I need to know how to compare the permissions of files which are in two different directories in Unix..
Experts - can any one help on this..!!! (1 Reply)
Discussion started by: yanis
1 Replies
10. Shell Programming and Scripting
Hi Everyone
I am new to Unix shell scripting
Can anyone please explain me in detail how this command works
awk -F@ 'NR==FNR{A=$2;next}$3 in A{$3=A}1' file2 file1
The above command I got it from this forum, but unable to implement it as I am not getting how this works:mad:
I... (3 Replies)
Discussion started by: Vijay90
3 Replies
LEARN ABOUT FREEBSD
clocks
CLOCKS(7) BSD Miscellaneous Information Manual CLOCKS(7)
NAME
clocks -- various system timers
SYNOPSIS
#include <time.h>
DESCRIPTION
HZ is not part of the application interface in BSD.
There are many different real and virtual (timekeeping) clocks with different frequencies:
o The scheduling clock. This is a real clock with frequency that happens to be 100. It is not available to applications.
o The statistics clock. This is a real clock with frequency that happens to be 128. It is not directly available to applications.
o The clock reported by clock(3). This is a virtual clock with a frequency that happens to be 128. Its actual frequency is given by the
macro CLOCKS_PER_SEC. Note that CLOCKS_PER_SEC may be floating point. Do not use clock(3) in new programs under FreeBSD. It is feeble
compared with getrusage(2). It is provided for ANSI conformance. It is implemented by calling getrusage(2) and throwing away informa-
tion and resolution.
o The clock reported by times(3). This is a virtual clock with a frequency that happens to be 128. Its actual frequency is given by the
macro CLK_TCK (deprecated; do not use) and by sysconf(_SC_CLK_TCK) and by sysctl(3). Note that its frequency may be different from
CLOCKS_PER_SEC. Do not use times(3) in new programs under FreeBSD. It is feeble compared with gettimeofday(2) together with
getrusage(2). It is provided for POSIX conformance. It is implemented by calling gettimeofday(2) and getrusage(2) and throwing away
information and resolution.
o The profiling clock. This is a real clock with frequency 1024. It is used mainly by moncontrol(3), kgmon(8) and gprof(1). Applications
should determine its actual frequency using sysctl(3) or by reading it from the header in the profiling data file.
o The mc146818a clock. This is a real clock with a nominal frequency of 32768. It is divided down to give the statistic clock and the
profiling clock. It is not available to applications.
o The microseconds clock. This is a virtual clock with frequency 1000000. It is used for most timekeeping in BSD and is exported to
applications in getrusage(2), gettimeofday(2), select(2), getitimer(2), etc. This is the clock that should normally be used by BSD
applications.
o The i8254 clock. This is a real clock/timer with a nominal frequency of 1193182. It has three independent time counters to be used. It
is divided down to give the scheduling clock. It is not available to applications.
o The TSC clock (64-bit register) on fifth-generation or later x86 systems. This is a real clock with a frequency that is equivalent to
the number of cycles per second of the CPU(s). Its frequency can be found using the machdep.tsc_freq sysctl, if it is available. It is
used to interpolate between values of the scheduling clock. It can be accessed using the PMIOTSTAMP request of perfmon(4).
o The ACPI clock. This is a real clock/timer with a nominal frequency of 3579545. It is accessed via a 24 or 32 bit register. Unlike the
TSC clock, it maintains a constant tick rate even when the CPU sleeps or its clock rate changes. It is not available to applications.
Summary: if HZ is not 1000000 then the application is probably using the wrong clock.
SEE ALSO
gprof(1), clock_gettime(2), getitimer(2), getrusage(2), gettimeofday(2), select(2), clock(3), moncontrol(3), times(3)
AUTHORS
This manual page was written by Jorg Wunsch after a description posted by Bruce Evans.
BSD
January 18, 2008 BSD