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 will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?

3 Answers   IBM,


Explain process management system calls in linux?

0 Answers  


what is segmentation fault?

11 Answers   AdTel, NetApp,


diff b/w spinlock, seamaphores and mutex and where to use it.

2 Answers   Intel,






how to configure http server on red hat linux4.0?

5 Answers   IBM,


How to create secured appeche web sever ?

1 Answers   HCL,


How to get microseconds of system time from Redhat Linux 4.0

2 Answers  


What are the signals we have in Linux

3 Answers   HCL, NetApp,


linux file defaults permition

8 Answers  


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

1 Answers   Google,


I would like to know whether Simado and Setu products are they EPBX or not ?

0 Answers   IBM,


Categories