answersLogoWhite

0


Best Answer

"Busy waiting" is the act of actively waiting for some condition to change.

In programming microcontrollers, one might want to wait for a pin to become high or low before continuing with the program.

A "busy waiting loop" in C would look like this:

...

while(PIN1 != HIGH)

;

...

This essentially does nothing but check the value of "PIN1" time after time, waiting for it to become "HIGH".

Now, if PIN1 were to become "HIGH", the processor "breaks out" of this busy-waiting loop and continues with the program.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

System overload , waiting for connection.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define Busy waiting
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What does the hourglass means?

Usually this means that your computer is busy, and it is asking you to wait until it is ready for the next operation.


What are the scheduling criteria for CPU scheduling?

CPU Scheduling Criteria: There are many scheduling algorithms and various criteria to judge their performance. Different algorithms may favor different types of processes. Some criteria are. as follows: • CPU utilization: CPU must be as busy as possible in performing different tasks. CPU utilization is more important in real-time system and multi-programmed systems. • Throughput: The number of processes executed in a specified time period is called throughput. The throughput increases .for short processes. It decreases if the size of processes is huge. • Turnaround Time: The amount of time that is needed to execute a process is called turnaround time. It is the actual job time plus the waiting time. • Waiting Time: The amount of time the process has waited is called waiting time. It is the turnaround time minus actual job time. • Response Time: The amount of time between a request is Submitted and the first response is produced is called response time. A CPU scheduling algorithm should try to maximize the following: • CPU utilization • Throughput A CPU scheduling algorithm should try to minimize the following: • Turnaround time • Waiting time • Response time by manish kumar gnit g.noida


Difference between non-persistent and p-persistent csma?

Non-persistent is deferential, while 1-prisistent is selfish.In non-persistent CSMA if the medium is busy, there will be a random delay for retransmission. This reduces the probability of collisions, but wastes the capacity.In 1-persistent CSMA if the medium is busy, the channel will be sensed until it is idle, then it will transmit immediately. This means that collisions are almost guaranteed to occur.


How long does it take to download a 399 megabyte game?

It depends on the speed of your internet connection. It could take hours on a very slow connection, or just a couple of minutes on a lightning fast connection. Also, how busy the server is that you are downloading from will also have an effect. A very busy server and/or a connection to the 'net that isn't fast enough to support all of the downloads being done at the same time will extend your download time.


Where you download free 5800 applications?

nokia's India website www.nokia.co.in or their hong kong one www.nokia.com.hk not much on them... but enough to keep you busy while sitting there bored on the bus/train...

Related questions

What is the meaning of the term busy waiting What other kinds of waiting are there in an operating system Can busy waiting be avoided altogether Explain your answer?

_ A process is waiting for an event to occur and it does so by executing instructions. _ A process is waiting for an event to occur in some waiting queue (e.g., I/O, semaphore) and it does so without having the CPU assigned to it. _ Busy waiting cannot be avoided altogether.


I am waiting for your answer?

Be more patient, could be busy.


What is busy waiting give fragment of source code in c that shows busy waiting?

while(test-and-set(1)) { //access critical section } busy waiting is constantally checking for a condition for true if it does not again and again check the condition upto condition becomes true


What is the difference between busy waiting and blocking process?

Busy waiting vs. Blocking Busy waiting is preferable when: Scheduling overhead is larger than expected wait time. Process resources are not needed for another tasks Schedule -based blocking is inappropriate (e.g in OS kernel)


In a multi processor environment are there some situation where busy waiting is only form of waiting can be used?

in operating system


What is busy waiting with respect to Operating System?

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.


What are the advantages and disadvantages of semaphore?

advantage small code ais busy waiting


Is jesus coming and shall you look busy?

Jesus is comming and we are waiting for that great day.


Why was Aunt Alexandra waiting on the pourch?

She was there to help watch the kids while atticus was busy with the trial


What was the main reason to build a trench?

it was to keep the soldiers busy durning the long waiting periods between flighting.


Define subjective quantitative?

Subjective quantitative is when you answer subjectively but through numbers. example... how do you feel about busy shops from a scale of 1-10?


What does queuing?

A line of waiting people or vehicles in your case a list of songs in a playing order, it also means in printing and downloading that it is too busy to do what you want.