Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

  Take Quiz (Monsoon) Beta Version !!
  Do You have Qs. in your Mind ??? Ask it as Qs. or MCQs or create it as polling Live Now !!

Operating System :: Process Management

Home > Operating System > Process Management > General Questions

1 / 37

 Match the following?

i) Software Interrupt mechanism (l)Deadlock
ii) Passing data from one process to another process (2)Signals
iii) A situation wherein two or more competing actions (3)Preemptive multitasking
are waiting for the other to finish, and thus
neither ever does
iv) Allows the computer system to more reliably guarantee each process a regular slice of operating time (4)Pipe

Answer: Option B

Explanation:

The answer to this question is option C.
Software Interrupt mechanisms are possible through Signals.

Passing data from one process to another process is done via PIPE.

a situation wherein two or more competing actions are waiting for the other to finish and this neither ever does is called DEADLOCK.

allows the computer system to more reliably guartee each process a regular slice of operating time is with preemptive multitasking.

Workspace


Tags:  Commvault

2 / 37

 Which of the following are true with respect to deadlock conditions?

1) Mutual exclusion: a resource that cannot be used by more than one process or thread at a time

2) Hold and wait: processes already holding resources may request new resources

3) No preemption: No resource can be forcibly removed from a process holding it, resources can be released only by the explicit action of the process

4) Circular wait: two or more processes form a circular chain where each process waits for a resource that the next process in the chain holds

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Commvault

3 / 37

 Which of the following algorithm is used for deadlock avoidance?

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

Answer: Option A

Explanation:

Semaphores are synchronization tools.

Any integer(non negative) can act as semaphore. Semaphores are used for counting tasks such as creating a critical region that allows a specified number of threads to enter. For example, if we want at most four threads to be able to enter a section, we could protect it with a semaphore and initialize that semaphore to four.The first four threads will be able to decrement the semaphore and enter the region, but at that point, the semaphore will be zero and any other thread will be blocked from outside the critical region until one of the current threads leaves and signals the semaphore.

Workspace


Tags:  Wipro Global Edge

Answer: Option B

Explanation:

A critical section is a code segment that access shared variables and has to be executed as an atomic action.

It means that in a group of cooperating processes, at a given point of time, only one process must be executing its critical section, If any other process also wants to execute its critical section, it must wait until the first one finishes.

NOTE: Only those processes can enter the critical section which are using the shared variables, and not those which are independent.

Workspace


Tags:  Wipro Global Edge

7 / 37

 The process in which OS saves all data associated with current process and switches over to the next is called

Answer: Option C

Explanation:

The correct option is Option C, ie., context switching.

Context Switching means switching of CPU to another process, i.e., saving the state of old process and loading saved data for new process.

In context switching, the process is stored in PCB(Process Control Block), to serve the new process, so that the old process can be resumed from the same part it was left.                              

Workspace


Tags:  Wipro Global Edge

8 / 37

 Background running processes are typically called

Answer: Option A

Explanation:

Background processes are also known as Daemon processes. It runs
in the background without keyboard 
input and waits till keyboard input is
required. Thus, other processes can be done in parallel with the process 
running in background since they do not have to wait for the previous process
to be completed.


Adding & along with the command starts it as a background process



 $ pwd &



Since pwd does not wants any
input from the keyboard, it goes to the stop state until moved to the
foreground and given any data input. Thus, on pressing Enter, 

Output:



[1]   +   Done                 pwd



$



            That
first line contains information about the background process – the job number
and the process             ID. It tells you that the ls command background process
finishes successfully.

Workspace


Tags:  Wipro Global Edge

9 / 37

 An optimal scheduling algorithm in terms of minimizing the average waiting time of a given set of processes is ________.

Answer: Option C

Explanation:

FIrst Come First Serve(FCFS) scheduling algorithms can cause long waiting times, especially when the first job takes too much CPU time.

In the case of Round Robin(RR), if the time quantum is large, it will result to starvation, because other processes will have to wait for a long time to execute.

Only SJF or Shortest Job First  scheduling algorithm is optimal in terms of average waiting time for a given set of processes i.e., average waiting time is minimum in this scheduling algorithm. In SJF, processes which have the shortest burst time are scheduled first. It is a non-preemptive scheduling algorithm.  

Workspace


Tags:  Wipro

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Wipro Global Edge