Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

October 6 University Faculty of Information Systems

& Computer Science


Subject: Operating Systems
Sheet 3
2019/2020

Processes
1. Program is passive entity stored on disk (executable file), process is a
program that becomes a process when executable file is loaded into
memory.
true
2. Process states are only (new, running and terminated)
false
3. In process scheduling, processes migrate among the various queues
including job queue, ready queue and device queue.
true

4. Long-term scheduler selects which processes should be brought into the


ready queue
true

5. When CPU switches to another process, the system must save the state of
the old process and load the saved state for the new process via a context
switch.
true
6. Context-switch time is not overhead because the system does some other
useful work while switching.
false
7. When the process terminates in cascading termination, all children,
grandchildren, etc, are terminated.
true
8.
9.

Page 1 of 3
October 6 University Faculty of Information Systems
& Computer Science
Subject: Operating Systems
Sheet 3
2019/2020

1. Information associated with each process including process state , program


counter, CPU registers, CPU scheduling information…etc.
a- Thread b- Process Control Block (PCB) c-Direct memory access (DMA)
2. ……………. selects which process should be executed next and allocates CPU
a. Short-term scheduler b- long-term scheduler c- medium-term scheduler .
3. Parent process may terminate the execution of children processes using the
…………. system call.
a. Exit() b- Wait() c- abort()
4.

1. What are the possible reasons for terminating children processes?

There are many reasons for terminating a child including:


➢ Child has exceeded allocated resources
➢ Task assigned to child is no longer required
➢ The parent is exiting and the operating systems does not allow a child to
continue if its parent terminates
2. What is Interprocess Communication and why it is required in OS?
• Processes within a system may be independent or cooperating

Page 2 of 3
October 6 University Faculty of Information Systems
& Computer Science
Subject: Operating Systems
Sheet 3
2019/2020

• operating process can affect or be affected by other processes, including sharing


data
• Reasons for cooperating processes:
➢ Information sharing
several users may be interested in the same piece of information (for
instance, a shared file)
➢ Computation speedup
If we want a particular task to run faster, we must break it into subtasks,
each of which will be executing in parallel with the others.
➢ Modularity
dividing the system functions into separate processes or threads
➢ Convenience
Even an individual user may work on many tasks at the same time.

Page 3 of 3

You might also like