What is the state of the processor, when a process is
waiting for some event to occur?
Answers were Sorted based on User's Feedback
Answer / wkrtos
When a process is waiting for some event to take place, most
likely for the needy resources to be relased by other
process or processes that are currently utilizing the
resources, such as an I/O device, it is at a blocked state.
Upon the availability of waited resources, after the
resources being relased, the process will transit to a ready
state from this blocked state.
Is This Answer Correct ? | 31 Yes | 16 No |
Answer / ravi a joshi
I don't think there is any relation between processor state
and process state. They are independent. However they are
loosely coupled through the operating system. Assuming that
the OS you are using is multi-processing OS, then, whenever
a process P1 is waiting for some resource, the OS scheduler
puts P1 in sleep mode and allows other scheduled processes
to run. Hence, the processor state will always be running.
In case, there are no more processes to run, then, the
processor enters NOP or WAIT state.
Is This Answer Correct ? | 14 Yes | 4 No |
Answer / guest
When a process is waiting for event it is in blocked state
when a process is waiting for resource it is in pending
state
Is This Answer Correct ? | 18 Yes | 10 No |
Answer / kiran.m.v
If the system is waiting for an event and no other process
is running, then the processor will be running the 'system
idle loop', as a state we can say its Pending or Blocked.
Is This Answer Correct ? | 11 Yes | 6 No |
Answer / nithin ganesh
Since they have asked for the state of the processor it
will be in the idle state.idle state is nothing but a
lowest priority which is executed to keep the processor
busy always...
Is This Answer Correct ? | 6 Yes | 4 No |
Answer / kum
The answer 6 seems to be closer. It all depends on whether
the system is multitasking or not.
If it is multitasking: The process that is waiting for an
event to occur and in user mode, there are other processes
waiting to be scheduled then possibly one of the processes
will be eventually scheduled by preempting the current process.
If it is multitasking and the process is waiting for an
event to occur and in kernel mode?????
If it is not multitasking: Very trivial case needs no
elaboration.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / kuga
Processes can be in one of three states: running, ready, or
waiting. The running state means that the process has all
the resources it need for execution and it has been given
permission by the operating system to use the processor.
Only one process can be in the running state at any given
time. The remaining processes are either in a waiting state
(i.e., waiting for some external event to occur such as user
input or a disk access) or a ready state (i.e., waiting for
permission to use the processor). In a real operating
system, the waiting and ready states are implemented as
queues which hold the processes in these states. The
animation below shows a simple representation of the life
cycle of a process
Is This Answer Correct ? | 3 Yes | 2 No |
If two processes which shares same system memory and system clock in a distributed system, What is it called?
When would you choose bottom up methodology?
What is the difference between Hard and Soft real-time systems ?
11 Answers Google, Hella, Satyam,
When would you choose top down methodology?
What do you mean by deadlock?
what is difference between IRQ and FRQ ?
what are the rules u follow when u r writing critical section of code?
what is major concerns about any RTOS selection ?
What is a mission critical system ?
Explain the difference between microkernel and macro kernel.
5 Answers Infosys, Tech Mahindra,
What is the difference b/n any GPOS and RTOS?Give suitable examples or characteristic of RTOS to support your answer. What changes can be done in a GPOS to make it work like a RTOS? What basic features will you support, if you have to design a RTOS?
8 Answers Bosch, Emulogic, L&T, Qualcomm,
What is priority inversion ? and What is the solution ?
6 Answers Qualcomm, Tandberg, Wipro,