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 ?||30 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 / namita garhwal
it is known as waiting state
|Is This Answer Correct ?||14 Yes||5 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
|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
|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
|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|
Answer / senthil
|Is This Answer Correct ?||10 Yes||11 No|
what are the rules u follow when u r writing critical section of code?
I have been working on one thread which manage and control a couple of circular buffers. It has api for other thread to access. As the thread grows bigger and bigger, I split it as 3 to 4 threads which need to share common buffers, and also their api could be used by other threads, (not these three threads). Inside api, I also allow other threads to access these three threads' common buffers(more than one buffer). SO I have to use mutex to avoid race condition . But I found mutex will be everwhere in all the threads when they update the common buffer. I am wondering whether I could reduce mutex usage(more mutex will hure my system performance). any ideas for how to reduce mutex usage meanwhile to avoid race condition. Thanks
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?
What is a mission critical system ?
What is the state of the processor, when a process is waiting for some event to occur?
what is major concerns about any RTOS selection ?
Explain the difference between microkernel and macro kernel.
what is the need of creating 4GB of pages in linux?
What is a Real-Time System ?
what is difference between IRQ and FRQ ?
What is priority inversion ? and What is the solution ?
If two processes which shares same system memory and system clock in a distributed system, What is it called?