This is an example where Microsoft is always going away from standard!
The delay function called Sleep() of course has an equivalent on Linux, UNIX and any other POSIX compliant operating system.
The equivalent function is called sleep() (note that the first letter is in small caps contrary to the Windows version), it has been defined by the standard POSIX version 1 in 2001. The header file for this function is 'unistd.h'.
By the way, since Windows NT, hence also XP are POSIX compliant, why are you using a non-standard function (Sleep()) where a well defined one already exists?
Note that POSIX is supported by the IEEE.
Can anyone tell me why Microsoft defined that Sleep() function which is almost the same as the
POSIX sleep() one.
Sleep function in C-language?
If you love POSIX so much, why don't you marry it?
Seriously, don't like a language? Don't program in it.
Reply:I think this describes the inner workings of the minds behind many of Microsoft's decisions... "Why have one standard when you can have two?"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment