What is busy waiting?

Answers were Sorted based on User's Feedback



What is busy waiting?..

Answer / v.vijayakumar

The repeated execution of a loop of code while waiting for
an event to occur is called busy-waiting. The CPU is not
engaged in any real productive activity during this period,
and the process does not progress toward completion.

Is This Answer Correct ?    82 Yes 11 No

What is busy waiting?..

Answer / preet baidwan

while any process is in its critical section , any other process that tries to enter its critical section must loop continously in the entry code.this continue looping is clearly a problem in a real multiprogramming system. where a single CPU is shared among many processes. Busy waiting wastes CPU cycles that could have been used by some process in more productive way. This type of semaphore is also called a spinlock.

Is This Answer Correct ?    45 Yes 4 No

What is busy waiting?..

Answer / mohd dilshad

busy-waiting or spinning is a technique in which a process
repeatedly checks to see if a condition is true, such as
whether keyboard input is available, or if a lock is
available. Spinning can also be used to generate an
arbitrary time delay, a technique that was necessary on
systems that lacked a method of waiting a specific length
of time. On modern computers with widely differing
processor speeds, spinning as a time delay technique often
produces unpredictable results unless code is implemented
to determine how quickly the processor can execute a "do
nothing" loop.

Is This Answer Correct ?    18 Yes 17 No

Post New Answer

More Operating Systems General Concepts Interview Questions

In general what is paging? and segmaentation?

2 Answers   Intelligroup,


what is the difference btn collision domain and broad cast domain?

2 Answers  


Difference between multi threading and multi tasking?

1 Answers  


Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?

0 Answers  


Measurements of a certain system have shown that the average process runs for a time T before blocking on I/O. A process switch requires a time S, which is e&#64256;ectively wasted (overhead). The CPU’s e&#64259;ciency is the fraction of its time its spends executing user programs, i.e., executing user processes. For round robin scheduling with quantum Q, give a formula for the CPU e&#64259;ciency for each of the following: (a) Q = &#8734; (b) Q > S + T (c) S <Q<S + T (d) Q = S

0 Answers  






Define and explain COM?

1 Answers  


Working for a logistics company, I need to know your suggestion which preferred processing technique for the computers of end users, multiprocessing or multitasking? and why?

2 Answers  


Why are wait states used?

0 Answers  


What is page cannibalizing?

1 Answers   HCL, Wipro,


What are the basic functions of file management in os?

0 Answers  


What are the three types of operating systems?

0 Answers  


How to stop running thread?

0 Answers  


Categories