Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 701 Bytes

File metadata and controls

6 lines (5 loc) · 701 Bytes

ThreadPriority

Create 2 classes PriorityRunner and PriorityThread. Start 3 threads with priorities (min, max, norm). With the help of the for loop, we will display values from 1 to 50 on the screen and indicate which thread is doing this operation.

4 Java Advanced 8 Thread & Runnable

Завдання 3

Демонстрація пріоритетів. Створити 2 класи PriorityRunner та PriorityThread. Запустити 3 потоки із пріоритетами (min, max, norm). За допомогою циклу for виведемо на екран значення від 1 до 50 і вкажемо, який саме потік цю операцію робить.