01-11-2017
4000 thanks ... Well done, Corona688. Another milestone first !! Keep up the good work...
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
I am using a Quantum DLT 4000 tape drive on a PowerMac G4 with OS 10.1.5
I'd like to use the Terminal application, which is based on BSD 4.4, to see the tape drive and write backup tapes to it.
First, is there a way to list all the devices attached to the computer? And secondly, is there a way... (0 Replies)
Discussion started by: derekc132002
0 Replies
2. News, Links, Events and Announcements
http://www.cnn.com/2003/TECH/01/07/dvd.johansen/index.html (1 Reply)
Discussion started by: Neo
1 Replies
3. AIX
Hi
i am new to aix , we are using aix 5.3 version and model is 510 and 520 model servers. in our servers contains 8 gb ram.
but servers average ram usage is reaching 99.9% , can any body help on this , is any impact if memory usage reach 99.9%.
Regards
Balaji Poola (2 Replies)
Discussion started by: Balajipoola007
2 Replies
4. What is on Your Mind?
On behalf of the forums, we are so happy to see such an amazingly rescue of the 33 miners. What a great and happy story of human endurance and team work to save miners trapped nearly 700 meters underground.
Bravo Chile !!
We salute you!!! (5 Replies)
Discussion started by: Neo
5 Replies
5. Shell Programming and Scripting
Hi frnds
i am newbie in linux and trying to write a simple script for adding users.the problem is i am running a while loop under function and loop is running for 3 time more than limit.Here is my Script and output pls help me out :
# CREATE N NO. OF USERS WITH PASSWORD IN SYSTEM
#... (4 Replies)
Discussion started by: Vaibhav.T
4 Replies
6. What is on Your Mind?
Hi all,
Please join me to congrats Neo for crossing 10,000 posts count.
I think he is the first to have this count with the longest journey (12 yrs) at unix.com. At least I didn't see any other member with the same or more figures.Mods, please correct me if wrong. Perderabo is likely to be the... (6 Replies)
Discussion started by: clx
6 Replies
7. Linux
Hi,
I have this problem on RHEL box. I am using two NIC's of same model and make (Intel 82557) in the adjacent PCI slots . I am using each one for different subnet and have assigned them ipaddresses and gateways of respective subnets . While one is O.K. connecting to its ... (5 Replies)
Discussion started by: dextergenious
5 Replies
8. What is on Your Mind?
Please join me in congratulating and thanking Corona688 for 20,000 top quality posts at unix.com !
https://www.unix.com/members/1-albums112-picture651.png (11 Replies)
Discussion started by: Neo
11 Replies
9. What is on Your Mind?
Hello All forum members,
I would like to take this opportunity to THANK RudiC for his tremendous achievement, guidance, help for helping in forums, let us join our hands together for his GREAT achievement :b:
@Rudi sir,
How are you sir?
you ROCK, please keep up the great work sir :b:
... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
10. What is on Your Mind?
Sometime today Don Cragun reached 4000+ thanks from different folks.
Well done Don, I have learnt a lot from you and other guys on here.
Big thanks from we who have benefitted from your expertise. (6 Replies)
Discussion started by: wisecracker
6 Replies
LEARN ABOUT MOJAVE
dispatch_time
dispatch_time(3) BSD Library Functions Manual dispatch_time(3)
NAME
dispatch_time, dispatch_walltime -- Calculate temporal milestones
SYNOPSIS
#include <dispatch/dispatch.h>
static const dispatch_time_t DISPATCH_TIME_NOW = 0ull;
static const dispatch_time_t DISPATCH_TIME_FOREVER = ~0ull;
dispatch_time_t
dispatch_time(dispatch_time_t base, int64_t offset);
dispatch_time_t
dispatch_walltime(struct timespec *base, int64_t offset);
DESCRIPTION
The dispatch_time() and dispatch_walltime() functions provide a simple mechanism for expressing temporal milestones for use with dispatch
functions that need timeouts or operate on a schedule.
The dispatch_time_t type is a semi-opaque integer, with only the special values DISPATCH_TIME_NOW and DISPATCH_TIME_FOREVER being externally
defined. All other values are represented using an internal format that is not safe for integer arithmetic or comparison. The internal for-
mat is subject to change.
The dispatch_time() function returns a milestone relative to an existing milestone after adding offset nanoseconds. If the base parameter
maps internally to a wall clock, then the returned value is relative to the wall clock. Otherwise, if base is DISPATCH_TIME_NOW, then the
current time of the default host clock is used.
The dispatch_walltime() function is useful for creating a milestone relative to a fixed point in time using the wall clock, as specified by
the optional base parameter. If base is NULL, then the current time of the wall clock is used.
EDGE CONDITIONS
The dispatch_time() and dispatch_walltime() functions detect overflow and underflow conditions when applying the offset parameter.
Overflow causes DISPATCH_TIME_FOREVER to be returned. When base is DISPATCH_TIME_FOREVER, then the offset parameter is ignored.
Underflow causes the smallest representable value to be returned for a given clock.
EXAMPLES
Create a milestone two seconds in the future:
milestone = dispatch_time(DISPATCH_TIME_NOW, 2 * NSEC_PER_SEC);
Create a milestone for use as an infinite timeout:
milestone = DISPATCH_TIME_FOREVER;
Create a milestone on Tuesday, January 19, 2038:
struct timespec ts;
ts.tv_sec = 0x7FFFFFFF;
ts.tv_nsec = 0;
milestone = dispatch_walltime(&ts, 0);
Use a negative delta to create a milestone an hour before the one above:
milestone = dispatch_walltime(&ts, -60 * 60 * NSEC_PER_SEC);
RETURN VALUE
These functions return an abstract value for use with dispatch_after(), dispatch_group_wait(), dispatch_semaphore_wait(), or
dispatch_source_set_timer().
SEE ALSO
dispatch(3), dispatch_after(3), dispatch_group_create(3), dispatch_semaphore_create(3)
Darwin May 1, 2009 Darwin