12-27-2016
Moderator's Comments:
|
|
Since the required and requested completed homework and coursework questionnaire has not been provided, this thread is closed!
|
|
10 More Discussions You Might Find Interesting
1. Programming
I need a c function which return the time in:
hour min sec and mil sec
I am writing on unix os. (3 Replies)
Discussion started by: kamil
3 Replies
2. Programming
Hi,
I need to time a certain function in my C/C++ code and I am experiencing some difficulties. I timed it using wallclock time so I know that it takes approximately 500-600 microseconds with
gettimeofday(&start, NULL);
// my function call
gettimeofday(&end, NULL);
answer = (end.tv_sec -... (2 Replies)
Discussion started by: zynnel
2 Replies
3. Shell Programming and Scripting
Hi,
I would like to display the exact time taken to complete running a particular tool or function or program to user
I don't know the exact time functions in unix, please help me
thanks in advance
Example:
$test.ksh
output should be
The... (10 Replies)
Discussion started by: hsekol
10 Replies
4. Programming
Hello
I have problem with function 'time' to test my program for file copying .
How to run the function in my source code ?
I try something like that:
system("time"); < -- but this don't working (2 Replies)
Discussion started by: scotty_123
2 Replies
5. Shell Programming and Scripting
Hi All,
I am using solaris and nawk.
Is there any time function in nawk which is simliar to the shell `date` function ?
Can any experts show any examples? (4 Replies)
Discussion started by: Raynon
4 Replies
6. Shell Programming and Scripting
HI ,
I need to get the timedifference between two values... which funcation will help
eg: difference betweem 19:22 and 19:43 should give 21 mins (2 Replies)
Discussion started by: savitha
2 Replies
7. UNIX for Dummies Questions & Answers
hello everybody!
i want to post a question. So, I use the command 'time a.out' to time the duration of the program a.out. The return value of this function was:
real 0m4.116s
user 0m4.112s
sys 0m0.016s
What i want is! I try to find a way to get (NOT manually) the value of real time.... (2 Replies)
Discussion started by: nicos
2 Replies
8. Red Hat
HI
I have a Red Hat Enterprise with Real Time kernel.
Are you aware if there are C functions for this kernel or some code/library for this OS for measuring time more lightweight than clock_gettime and gettimeofday? THe hardware I have is NUMA.
Reading forums I found gethrtime but it is... (1 Reply)
Discussion started by: manustone
1 Replies
9. Shell Programming and Scripting
Hello, I have made a Linux Shell Script that downloads 6 files from the Internet and then deletes them. Now i want to use the function "/usr/bin/time" and "bc" to calculate how long the avergate run time for the shell script is. I therefore need to do it 100 times. My shell script code is below:
... (6 Replies)
Discussion started by: solo2
6 Replies
10. OS X (Apple)
Hi guys and gals...
I am writing a piece of code that is dash compliant and came across this error.
I have put it in the OSX section as that is what I am using.
I have no idea what the 'dash' version is but was installed about 6 months ago.
MBP, OSX 10.12.6, default terminal running dash on... (4 Replies)
Discussion started by: wisecracker
4 Replies
LEARN ABOUT DEBIAN
apr::threadmutex
libapache2-mod-perl2-2.0.7::docs::api::APR::ThreadMutex(User Contributed Perl Documentlibapache2-mod-perl2-2.0.7::docs::api::APR::ThreadMutex(3pm)
NAME
APR::ThreadMutex - Perl API for APR thread mutexes
Synopsis
use APR::ThreadMutex ();
my $mutex = APR::ThreadMutex->new($r->pool);
$mutex->lock;
$mutex->unlock;
$mutex->trylock;
Description
"APR::ThreadMutex" interfaces APR thread mutexes.
API
"APR::ThreadMutex" provides the following functions and/or methods:
Unsupported API
"APR::ThreadMutex" also provides auto-generated Perl interface for a few other methods which aren't tested at the moment and therefore
their API is a subject to change. These methods will be finalized later as a need arises. If you want to rely on any of the following
methods please contact the the mod_perl development mailing list so we can help each other take the steps necessary to shift the method to
an officially supported API.
"DESTROY"
META: Autogenerated - needs to be reviewed/completed
Destroy the mutex and free the memory associated with the lock.
$mutex->DESTROY();
obj: $mutex ( "APR::ThreadMutex object" )
the mutex to destroy.
ret: no return value
since: subject to change
"lock"
META: Autogenerated - needs to be reviewed/completed
Acquire the lock for the given mutex. If the mutex is already locked, the current thread will be put to sleep until the lock becomes
available.
$ret = $mutex->lock();
obj: $mutex ( "APR::ThreadMutex object" )
the mutex on which to acquire the lock.
ret: $ret ( integer )
since: subject to change
"new"
Create a new mutex
my $mutex = APR::ThreadMutex->new($p);
obj: "APR::ThreadMutex" ( class name )
arg1: $p ( "APR::Pool object" )
ret: $mutex ( "APR::ThreadMutex object" )
since: subject to change
"pool_get"
META: Autogenerated - needs to be reviewed/completed
META: should probably be renamed to pool(), like all other pool accessors
Get the pool used by this thread_mutex.
$ret = $obj->pool_get();
obj: $obj ( "APR::ThreadMutex object" )
ret: $ret ( "APR::Pool object" )
apr_pool_t the pool
since: subject to change
"trylock"
META: Autogenerated - needs to be reviewed/completed
Attempt to acquire the lock for the given mutex. If the mutex has already been acquired, the call returns immediately with APR_EBUSY. Note:
it is important that the APR_STATUS_IS_EBUSY(s) macro be used to determine if the return value was APR_EBUSY, for portability reasons.
$ret = $mutex->trylock();
obj: $mutex ( "APR::ThreadMutex object" )
the mutex on which to attempt the lock acquiring.
ret: $ret (integer)
since: subject to change
"unlock"
META: Autogenerated - needs to be reviewed/completed
Release the lock for the given mutex.
$ret = $mutex->unlock();
obj: $mutex ( "APR::ThreadMutex object" )
the mutex from which to release the lock.
ret: $ret ( integer )
since: subject to change
See Also
mod_perl 2.0 documentation.
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
Authors
The mod_perl development team and numerous contributors.
perl v5.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::APR::ThreadMutex(3pm)