Discussion
Which of the following is NOT a system call ?
Answer: D
printf() is not a system call.
printf() is a function of the C standard library (<stdio.h>). It formats its arguments into a buffer in user space and, when the buffer is flushed, calls the write() system call to pass the bytes to the kernel. So it uses a system call but is not one itself.
fork() (create a process) and read() (read from a file descriptor) are UNIX system calls. exit() is the standard interface for ending a process, through the kernel's exit system call, and textbooks list it with the process-control system calls.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development