Pavel Filippov (emdin) wrote,
Pavel Filippov
emdin

Назначение приоритетов проектам в нашей студии аналогично работе thread scheduler в джаве.
There is no guarantee that the order in which threads were started determines the order in which they'll run.
There's no guarantee that threads will take turns in any fair way.
It's up to the thread scheduler, as determined by the particular virtual machine implementation. If you want a guarantee that your threads will take turns regardless of the underlying JVM, you can use the sleep() method. This prevents one thread from hogging the running process while another thread starves.


В нашем случае sleep() означает -- устроить небольшой скандал и тогда влезший без очереди проект можно отпинать в сторону, ненадолго. But there is no guarantee as to when the newly awakened thread will actually return to running.
Subscribe

  • (no subject)

    IMG_8122 Originally uploaded by emdin. Первый московский сюжет -- две машины на второй Квесисской улице, бахнувшиеся прямо у меня на глазах.…

  • разбираем фотографии

    IMG_8108 Originally uploaded by emdin. Большую часть этого добра я забыл в такси компании "Кастель", которое везло меня из аэропорта в…

  • (no subject)

    IMG_8150 Originally uploaded by emdin. Ну а теперь нечто совершенно иное -- роботы в центре Москвы. Однажды их глаза загорятся неумолимым…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments