The Linux Tree of Processes

GracefulMossAgate avatar
GracefulMossAgate
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Which of the following best describes a process in computer science?

A program in execution

What is the purpose of multiprogramming in computer science?

To allow multiple processes to run simultaneously

Which of the following is true about process creation in Linux?

A process can be created by any process

What happens after the OS decides to create a new process?

<p>All of the above</p> Signup and view all the answers

What happens after a process terminates?

<p>All resources assigned to the process are deallocated by the OS</p> Signup and view all the answers

What is the purpose of inter-process communication (IPC)?

<p>All of the above</p> Signup and view all the answers

Is the size of a message that the link can accommodate fixed or variable?

<p>It can be both fixed and variable</p> Signup and view all the answers

Is a link unidirectional or bi-directional?

<p>It depends on the type of link</p> Signup and view all the answers

What are the properties of a communication link?

<p>All of the above</p> Signup and view all the answers

What are the different ways in which buffering can be implemented?

<p>All of the above</p> Signup and view all the answers

Which section of the executable file's memory map contains global variables?

<p>Data section</p> Signup and view all the answers

Which state does a process enter when it is waiting for some event to occur?

<p>Waiting or Block</p> Signup and view all the answers

What is used by the operating system to keep track of processes?

<p>Process Control Block (PCB)</p> Signup and view all the answers

What information does the Process Control Block (PCB) contain?

<p>All of the above</p> Signup and view all the answers

Which of the following best describes a process in computer science?

<p>A program in execution</p> Signup and view all the answers

What resources does a process need to execute?

<p>Memory space, CPU, and other resources</p> Signup and view all the answers

What is the role of the operating system in assigning resources to processes?

<p>The operating system assigns resources to processes</p> Signup and view all the answers

What is the purpose of inter-process communication (IPC)?

<p>To allow processes to communicate and share data</p> Signup and view all the answers

What is the difference between a program and a process?

<p>A program is stored on disk, while a process is a program in execution</p> Signup and view all the answers

What is the term for the rapid switching back and forth of the CPU between processes?

<p>Multiprogramming</p> Signup and view all the answers

What is the purpose of the Process Control Block (PCB)?

<p>To store information about a process</p> Signup and view all the answers

Which of the following is NOT an element of the Process Control Block (PCB)?

<p>CPU scheduling information</p> Signup and view all the answers

What is the purpose of the CPU registers in the PCB?

<p>To save the process's execution context</p> Signup and view all the answers

Which state does a process enter when it is waiting for some event to occur?

<p>Waiting or Block</p> Signup and view all the answers

What happens when a process is terminated?

<p>The process's context is deleted from the PCB</p> Signup and view all the answers

What information does the memory-management information in the PCB include?

<p>Page tables or segment tables</p> Signup and view all the answers

What is the purpose of the accounting information in the PCB?

<p>To keep track of CPU usage and time elapsed</p> Signup and view all the answers

What is the purpose of the Process Control Block (PCB)?

<p>To track the process's execution status</p> Signup and view all the answers

Which of the following is true about message passing in computer systems?

<p>Message passing can be implemented using shared memory, a hardware bus, or a network.</p> Signup and view all the answers

Which of the following is true about direct communication in message passing?

<p>Processes must name each other explicitly.</p> Signup and view all the answers

Which of the following is true about indirect communication in message passing?

<p>Messages are directed and received from mailboxes.</p> Signup and view all the answers

Which of the following is true about mailbox sharing in indirect communication?

<p>Each pair of processes may share several communication links.</p> Signup and view all the answers

Which of the following is true about synchronization in message passing?

<p>Message passing can be either blocking or non-blocking.</p> Signup and view all the answers

Which of the following is true about blocking send in message passing?

<p>The sender is blocked until the message is received.</p> Signup and view all the answers

Which of the following is true about non-blocking receive in message passing?

<p>The receiver receives a null message.</p> Signup and view all the answers

Which of the following is true about buffering in message passing?

<p>All of the above.</p> Signup and view all the answers

Which of the following is true about the implementation of buffering in message passing?

<p>Buffering can be implemented using zero capacity, bounded capacity, or unbounded capacity.</p> Signup and view all the answers

Which of the following is true about process scheduling in Linux?

<p>The process scheduler selects among available processes for next execution on CPU.</p> Signup and view all the answers

What is the purpose of inter-process communication (IPC)?

<p>To allow processes to communicate and exchange data and information.</p> Signup and view all the answers

Which of the following is true about process termination?

<p>A parent process can terminate a child process if it has exceeded allocated resources or is no longer required.</p> Signup and view all the answers

What is the purpose of the process control block (PCB)?

<p>To store information about a process, such as its current state, program counter, and memory allocation.</p> Signup and view all the answers

Which of the following is true about message passing in inter-process communication?

<p>Message passing requires processes to establish a communication link between them.</p> Signup and view all the answers

What is the purpose of process creation in the operating system?

<p>To create new processes and expand the tree of processes.</p> Signup and view all the answers

What is the main purpose of the process scheduler in the operating system?

<p>To maximize CPU use and quickly switch processes onto the CPU for time sharing.</p> Signup and view all the answers

More Quizzes Like This

The Linux Foundation
18 questions

The Linux Foundation

AngelicDravite avatar
AngelicDravite
The Linux Operating System
5 questions

The Linux Operating System

MesmerizedAntigorite5012 avatar
MesmerizedAntigorite5012
Use Quizgecko on...
Browser
Browser