1
15kviews
What are system calls? Explain any five system calls.
1 Answer
written 8.4 years ago by |
Calls | Description |
---|---|
Open() | A program initializes access to a file in a file system using the open system call. |
Read() | A program that needs to access data from a file stored in a file system uses the read system call. |
Write() | It writes data from a buffer declared by the user to a given device, maybe a file. This is primary way to output data from a program by directly using a system call. |
Exec() | exec is a functionality of an operating system that runs an executable file in the context of an already existing process, replacing the previous executable |
Fork() | fork is an operation whereby a process creates a copy of itself. Fork is the primary method of process creation on Unix-like operating systems. |