define system calls, Operating System

 

When a computer is started on, the program that executed first is named the ''operating system.'' It controls pretty much all applications in the computer. This adds who logs in, how disks are consumed, how memory is accessed, how the CPU is used.

The way that applications talk to the operating system is via ''system calls.'' A system call seems like a procedure call, but it's not same -- it is a request to the operating system to operate some application.

There are 5 basic system calls that Unix gives for file I/O.

        1.  int open(char *path, int flags [ , int mode ] );

        2.  int close(int fd);

        3.  int read(int fd, char *buf, int size);

        4.  int write(int fd, char *buf, int size);

        5.  off_t lseek(int fd, off_t offset, int whence);

The reason the operating system operates I/O is for safety -- the computer has to ensure that if my program has a exception in it, then it doesn't affect the system, and it doesn't collide other people's applications that can be running at later or the same time. Whenever you do screen or disk or network I/O, you have to go through the operating system and use system calls.

 

 

 

1541_System calls.png

Posted Date: 7/28/2012 8:12:03 AM | Location : United States







Related Discussions:- define system calls, Assignment Help, Ask Question on define system calls, Get Answer, Expert's Help, define system calls Discussions

Write discussion on define system calls
Your posts are moderated
Related Questions
What are the main differences between operating systems for mainframe computers and personal computers? The design goals of operating systems for those machines are quite diffe

List the Coffman's conditions that lead to a deadlock. Mutual Exclusion : Only one process might be use a critical resource at a time. Hold & Wait: A process may be alloc

In fixed portioning scheme, what are the advantages of using unequal- size partitions? With unequal-size partitions there are two probable ways to assign process to partitions.

Question: (a) Distinguish between local and active directory Group Policy in Windows Server 2008? (b) Describe the three areas of account Policies that can be managed thro

Show the search tree generated by Hill-Climbing search (text figure 4.2, page 122; or Local Search lecture, slide 6) for each of the two heuristics (a) and (b) applied to the follo

1. A digitized voice channel is made by digitizing a 7 KHz bandwidth analog signal. The signal is to be sampled twice the highest frequency (two samples per hertz) . Assume each sa

Define a public key encryption system Allows just the correct receiver to decode the data

Q. Give an instance of an application in which data in a file should be accessed in the following order: a. Sequentially b. Randomly Answer: a. Print the content of

Explain about interprocess communication The cooperating processes communicate with each other via an interprocess communication facility. IPC gives a mechanism to permit proce

Q. Explain about Error detection method? Error detection: error can occur in CPU, in I/O devices or in memory hardware. Operating system constantly needs to be aware of possi