CHAPTER 11
CONCURRENCY
336
Item 84: Don’t depend on the thread scheduler
When many threads are runnable, the thread scheduler determines which ones get
to run and for how long. Any reasonable operating system will try to make this
determination fairly, but the policy can vary. Therefore, well-written programs
shouldn’t depend on the details of this policy.
Do'stlaringiz bilan baham: