answersLogoWhite

0


Best Answer

Theoretically a thread will give up its CPU time voluntarily by using the yield feature. But practically, the programmer will write the code and make the thread give up its CPU time. So it is not a voluntary act from the threads perspective. It is just doing it because the programmer made it do so.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why would a thread ever voluntarily give the CPU by calling a thread-yield?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does fork duplicated only the calling thread or all threads?

Calling Threads.....


Can the run method be called directly to start a thread?

No. If you want to start a new thread of execution, you need to call the start() method of the thread. Also, the run() is like any other java method and you can invoke it directly but if you do so, it would be called as part of the current programs thread and not as a new thread. When the start() method is invoked, the JVM creates a new thread and automatically calls the run() method and that is why a new thread gets started and not by calling run() directly.


What is the past tense of thread?

The past tense of "thread" would be "threaded".


When doing uneven basting do you double the thread?

I would, but it depends on how strong the fabric and the thread are.


What type of sewing machine thread would be appropriate for sewing silk?

a silk thread would be perfect or an ordinary cotton will do


What does and a thread of this belief is even shared by mean I don't know the meaning of the word thread here?

From the limited context; i would say that in this example, 'thread' means a small portion or part of. Thread of this belief would be synonymous with the smallest bit of this belief, for example.


How is metric thread pitch measured?

Metric thread pitch is measured directly from crest to crest of the thread form. For example the distance from crest to crest of a M8 x 1.25 MM thread would be 1.25 MM. Another way to measure it would be linear travel per rotation, in which case a M8 x 1.25 MM thread would travel 1.25 MM each rotation.


What is hand sewing thread used for?

Hand sewing is done by using a needle with thread, and joining two fabrics with the thread. Generally, for hand sewing, you would choose a thread size based on what you're sewing. The higher the wt number, the lighter (or finer) the thread is.


Can husband change title from both names to just his name?

No. If the wife is also on the deed to the premises she would need to voluntarily transfer her interest to her husband by executing a quitclaim deed.No. If the wife is also on the deed to the premises she would need to voluntarily transfer her interest to her husband by executing a quitclaim deed.No. If the wife is also on the deed to the premises she would need to voluntarily transfer her interest to her husband by executing a quitclaim deed.No. If the wife is also on the deed to the premises she would need to voluntarily transfer her interest to her husband by executing a quitclaim deed.


How do you mummify a lizard?

I would use thick thread.


Bicycle is to ride as needle is to?

Poke or thread. Since you ride a bicycle, you would thread or poke a needle.


What does hanging by a thread mean?

A thread is very thin and fragile, so if you're "hanging by a thread" you are in danger of breaking the thread and falling into whatever trouble is waiting.The expression "Hanging on by a thread" means that the person has avoided danger or persecution by the narrowest of means, and is "holding on" the the very edge of safety ( the string represents safety from falling).It means that what they're holding onto in the relationship and what would support them to stay and try and make it work--is just barely the strength and circumference of a single strand of thread. In other words, very, very little.