answersLogoWhite

0

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

14y ago

What else can I help you with?

Related Questions

What are the different types of dumbbell locks available in the market and which one would be the most suitable for my workout routine?

The main types of dumbbell locks are spin locks, quick-release locks, and magnetic locks. Spin locks are traditional and reliable but take longer to change weights. Quick-release locks are faster but may not hold as securely. Magnetic locks are convenient and easy to use but may not be as secure for heavy lifting. The most suitable lock for your workout routine depends on your preference for speed, security, and convenience.


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.


What are the properties and applications of spin 1 matrices?

Spin 1 matrices are mathematical tools used in quantum mechanics to describe the spin of particles. They have properties that allow for the representation of angular momentum and spin states. These matrices are commonly used in calculations involving particles with spin 1, such as photons and mesons. Their applications include predicting the behavior of particles in magnetic fields, analyzing scattering experiments, and understanding the quantum properties of spin systems.


Do tornadoes spin counterclockwise in the northern hemisphere?

Yes, tornadoes typically spin counterclockwise in the northern hemisphere due to the rotation of the Earth creating a cyclonic motion in low-pressure systems. In the southern hemisphere, tornadoes spin clockwise due to the Coriolis effect.


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

Low pressure systems in the southern hemisphere spin in a counterclockwise direction due to the Coriolis effect. This means that the winds circulate inward towards the center of the low pressure system.


Can you explain the process of spin-1/3 particles in quantum mechanics and how they differ from other spin values?

Spin-1/3 particles in quantum mechanics are a type of elementary particle that have a specific intrinsic angular momentum, or "spin," value of 1/2. This means they can have two possible spin states: spin up and spin down. These spin-1/3 particles differ from other spin values, such as spin-0 or spin-1 particles, in that they follow different rules and behaviors in quantum mechanics. For example, spin-1/3 particles obey Fermi-Dirac statistics, which dictate how identical particles with half-integer spin values behave in quantum systems. Overall, the unique properties of spin-1/3 particles play a crucial role in understanding the behavior of matter at the quantum level and are fundamental to many aspects of modern physics.


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'


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.

Trending Questions
How can you monitor what websites or instant messagers your nanny is using via your home WiFi without installing software on her personal laptop? What does the vlookup searches in a table until the matching value is found? How do you know if you have a PC? How many drops of cerebrospinal fluids to take when lumbar puncture? Which computer and printer uses dry ink power? Which topology has only one central point of failure is easy to troubleshoot and is most commonly implemented in newer networks? Why do you change the clocks? Where can Skype compatible headphones be purchased from? If you quadruple the input of a function and the resulting output is one-fourth the original output what may be true of the function? You have to type the a key very hard to get it to work? Where can one find the best laptops for sale? What does the VARS button do on a calculator? Can you extend the life of a Hard Drive by unplugging it like a Hot-swap bay? Why computer understands binary language? Is the rate of climb of a f8f-2 bearcat 6300ftmin? What does android have to do with Linux? What is correct concerning the Pick a Help topic feature of Windows Help? What laptop is better hp or Toshiba hp or Toshiba that's the question the hp is pavilion and the Toshiba is the satellite. i just want to brows the internet and do school projects and listen to music? How much is a computer and What is a other name for a computer mouse? In order to protect your computer from the newest virus what should your do after you've installed virus scan software?