answersLogoWhite

0


Best Answer

because the process holding the spinlock would do nothing (thus wasting CPU cycles) when it is allocated the CPU. It is better to put it in the sleep state (that is putting the process in the waiting queue). As soon as the process is wakened up (by some other process/thread invoking "signal/wake" on it) it is put in the "ready" queue when it runs as soon as the CPU is assigned to it.

on multiprocessor systems, it's generally better to "spin" because it is assumed that the running process on the other processor will release the lock pretty soon (thus it can release the lock and still continue running while your thread/process is getting a hold of the lock).

for better explanation check out "Operating System Concepts" by Silberchatz,

also Cornell University slides on Operating Systems Course are pretty useful as well.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are spin locks inappropriate for uniprocessor systems?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you play free online games that are not blocked?

dont go to meat spin, its an inappropriate site.


How do you solve the first puzzle piece in House of Anub is Secrets Within?

I'm not sure which one your talking about, but for most of the treasures you just spin the parts until it locks. When it locks it means you got it right. Like for the trickery one you just spin the 3 parts of the puzzle and align the glyphs.


Why does the world spin on its axces?

The world spins on its axis as a result of its creation in the solar systems angular momentum. The forces that created the earth involved forces that created spin around the spin axis.


How many disgaeas are there?

Technically there are 4. There are ports to other systems and a few spin-offs though.


Why do low pressure systems spin counterclockwise in the northern hemisphere?

This question is a very hard question to answer so no,


What direction do low pressure systems spin in the southern hemisphere?

A low pressure system in the southern hemisphere, rotates in a Clockwise direction.


What has the author Janet Mary Ramsden written?

Janet Mary Ramsden has written: 'Nuclear spin relaxation in water in heterogeneous systems'


What has the author K F Burton written?

K. F. Burton has written: 'Electron spin resonance studies of metal-ammonia systems'


What type of pressure system are hurricanes and how do the winds move around hurricanes?

Hurricanes are low pressure systems as are all storm systems. In a hurricane the low pressure draws air inward. The Coriolis effect, a consequence of earth's spin gives the air its own spin. Since the term hurricane applies to a tropical cyclone in the northern hemisphere the rotation will be counterclockwise.


Can winds spin clockwise in the northern hemisphere?

Yes. Large scale high pressure systems in the northern hemisphere rotate clockwise. On rare occasions a tornado in the northern hemisphere will rotate clockwise as well, though the vast majority spin counterclockwise.


If my big spin ticket had three spin am i automatically play for the spin?

if my big spin ticket had three spin, am i automatically play for the spin?


When was Spin Spin Sugar created?

Spin Spin Sugar was created in 1996.