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)

    " На плацу на коне император Александр II со своей свитой. Перед ним полк, уже получивший полковое знамя (оно развевается в центре построенного…

  • (no subject)

    танах / мишна / талмуд онлайн как же я это искал в своё время

  • (no subject)

    на конкурс самых коротких рассказов

  • 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