depending on the OS - yes.
For example in windows WaitForSingleObject with the handle of the curent thread will give the very exact result
depending on the OS - yes.
For example in windows WaitForSingleObject with the handle of the curent thread will give the very exact result
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler