Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. One frequently used system call is gettimeofday(2). This system call
  2. is called both directly by user-space applications as well as
  3. indirectly by the C library. Think timestamps or timing loops or
  4. polling—all of these frequently need to know what time it is right
  5. now. This information is also not secret—any application in any
  6. privilege mode (root or any unprivileged user) will get the same
  7. answer. Thus the kernel arranges for the information required to
  8. answer this question to be placed in memory the process can access.
  9. Now a call to gettimeofday(2) changes from a system call to a normal
  10. function call and a few memory accesses.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement