11/29/2022 0 Comments Java program for bus reservationAll the processing in order to look after threads is carried with help of the thread scheduler. Now geeks you must be wondering out what if we do assign the same priorities to threads then what will happen. The default priority for all other threads depends on the priority of the parent thread. The default priority for the main thread is always 5, it can be changed later. So, thread t2 will execute first based on maximum priority 6 after that t1 will execute and then t3. Suppose there are 3 threads t1, t2, and t3 with priorities 4, 6, and 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |