What will happen when we invoke a system call and
say with an example of invoking a system call ?read? for a
device?

Answers were Sorted based on User's Feedback



What will happen when we invoke a system call and say with an example of invoking a system call ?r..

Answer / dheeraj gahtori

Sysem call is an interface between process and the
operating system.
To See what happens when we invoke a system call we can
take an example.
If a system call is made to terminate the currently running
program , a dump of the memmory is taken somtime,
And a error message can be written if there is an error.
In this case the O.S. must transfer control to the command
interpreter. the command interpretor then reads the next
command.
And it depends upon the nature of the system wheather to
terminate or to continue........
We should also know that system calls are used for
process management, device management, Information
maintanance, communication etc....

Is This Answer Correct ?    7 Yes 4 No

What will happen when we invoke a system call and say with an example of invoking a system call ?r..

Answer / kumar babu

• User process executes a syscall open a file.
• User process links to a c runtime library for open and
sets up the needed parameters in registers.
• A software trap is executed now and the operation switches
to the kernel mode.
- The kernel looks up the syscall vector to call "open"
- The kernel tables are modified to open the file.
- Return to the point of call with exit status.
• Return to the user process with value and status.
• The user process may resume now with modified status on
file or abort on error with exit status.

Is This Answer Correct ?    4 Yes 1 No

What will happen when we invoke a system call and say with an example of invoking a system call ?r..

Answer / swamy

Qss. I would like to have some more interview questions
related to LINUX

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Linux System Calls Interview Questions

what is cups and how to configure?

7 Answers   IBM,


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


what is bus trap.

1 Answers   NetApp,


What does exec family return?

1 Answers  


how to create a ftp user on redhat linux 4.0?

6 Answers   Accenture,






Port number is already in use .. how to fix for apache..?

1 Answers   Google,


linux file defaults permition

8 Answers  


what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,


what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?

1 Answers  


What is the use of proc structure?

2 Answers   NetApp,


how to create samba server in fedora linux 9 ?

2 Answers   Accenture,


How to give the root permision to users?

3 Answers   Wipro,


Categories