Process Management - Operating System Questions & Answers - Sanfoundry PDF

Title Process Management - Operating System Questions & Answers - Sanfoundry
Author code with joey
Course Operating System
Institution Government College University Faisalabad
Pages 8
File Size 255.4 KB
File Type PDF
Total Downloads 43
Total Views 157

Summary

Download Process Management - Operating System Questions & Answers - Sanfoundry PDF


Description

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry



Operating System Questions & Answers – Processes « Prev

Next »

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Processes”. 1.

at a time, are called __________

a) uniprogramming systems c) unitasking systems d) none of the mentioned View Answer Answer: b Explanation: Those systems which allows more than one process execution at a time, are called  multiprogramming systems. Uniprocessing means only one processor.

https://www.sanfoundry.com/operating-system-questions-answers-processes/

1/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

2.

, each process has its own __________

a) address space and global variables b) open les c) pending alarms, signals and signal handlers

View Answer Answer: d Explanation: In Operating Systems, each process has its own address space which contains code, data, stack and heap segments or sections. Each process also has a list of les which is opened by the process as well as all pending alarms, signals and various signal handlers. 3. In

Which system call creates

b) create c) new d) none of the mentioned View Answer Answer: a Explanation: In UNIX, a new process is created by fork() system call. fork() system call returns a process ID which is generally the process id of the child process created. 4. A process can be terminated due to __________ a) normal exit

https://www.sanfoundry.com/operating-system-questions-answers-processes/



2/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

d) all of the mentioned View Answer Answer: d Explanation: A process can be terminated normally by completing its task or because of fatal error or killed by another process or forcefully killed by a user. When the process completes its task without any error then it exits normally. The process may exit abnormally because of the occurrence of fatal error while it is running. The process can be killed or terminated forcefully by another process. 5. What is the a) when process b) when process is unable to run until some task has been completed c) when process is using the CPU d) none of the mentioned View Answer Answer: a Explanation: Ready state of the process means process has all necessary resources which are required for execution of that process when CPU is allocated. Process is ready for execution but waiting for the CPU to be allocated. advertisement

What is Linux Linux Beginner Tutorial



https://www.sanfoundry.com/operating-system-questions-answers-processes/

3/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

b) communication between two process c) communication between two threads of same process d) none of the mentioned View Answer Answer: b Explanation: Interprocess Communication (IPC) is a communication mechanism that allows processes to communicate with each other and synchronise their actions without using the same address space. IPC can be achieved using shared memory and message passing. 7. A set of processes is deadlock if __________ a) each process b) each process is terminated c) all processes are trying to kill each other d) none of the mentioned View Answer Answer: a Explanation: Deadlock is a situation which occurs because process A is waiting for one resource and holds another resource (blocking resource). At the same time another process B demands blocking a resource as it is already held by a process A, process B is waiting state unless and until process A releases occupied resource. 8. A process stack does not contain __________ a) Function parameters b) Local variables c) Return addresses

View Answer Answer: d Explanation: Process stack contains Function parameters, Local variables and Return address. It does not contain the PID of child process. 9. Which system call can be used by a parent process to determine the termination of child process? b) exit



c) fork

https://www.sanfoundry.com/operating-system-questions-answers-processes/

4/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

Answer: a Explanation: wait() system call is used by the parent process to determine termination of child process. The parent process uses wait() system call and gets the exit status of the child process as well as the pid of the child process which is terminated. advertisement

10.

to be executed by the

the

__________ a) CPU registers c) Process stack d) Pipe View Answer Answer: b Explanation: The address of the next instruction to be executed by the current process is provided by the Program Counter. After every instruction is executed, the Program Counter is incremented by 1 i.e. address of the next instruction to be executed. CPU fetches instruction from the address denoted by Program Counter and execute it. Sanfoundry Global Education & Learning Series – Operating System. Here’s the list of Best Reference Books in Operating System.

https://www.sanfoundry.com/operating-system-questions-answers-processes/



5/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

Participate in the Sanfoundry Certication contest to get free Certicate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs! Telegram | Youtube | LinkedIn | Instagram | Facebook | Twitter | Pinterest « Prev - Operating System Questions & Answers – Basics » Next - Operating System Questions and Answers – Process Control Block advertisement

Recommended Posts: 1. Bachelor of Computer Applications Questions and Answers 2. Mechatronics Engineering Questions and Answers 3. Electrical Engineering Questions and Answers 4. Instrumentation Engineering Questions and Answers 5. Electronics & Communication Engineering Questions and Answers 6. Aerospace Materials and Processes Questions and Answers 7. C# Programming Examples on Networking 8. Manufacturing Engineering / Processes II Questions and Answers 9. IOT Questions and Answers 10. Home 11. Course Registration – 2 12. Unit Processes Questions and Answers 13. Java Programming Examples on Networking 14. Microcontroller Questions and Answers 15. Manufacturing Engineering / Processes I Questions and Answers

https://www.sanfoundry.com/operating-system-questions-answers-processes/



6/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

19. Advanced Machining and Processes Questions and Answers 20. Operating System Questions and Answers advertisement

Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn

Subscribe Sanfoundry Newsletter and Posts Name*

Email*

Subscribe









https://www.sanfoundry.com/operating-system-questions-answers-processes/





 7/8

3/9/2021

Process Management - Operating System Questions & Answers - Sanfoundry

© 2011-2021 Sanfoundry. All Rights Reserved.



https://www.sanfoundry.com/operating-system-questions-answers-processes/

8/8...


Similar Free PDFs