Practice using yield and surrendering time slices
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Alex Buyanov
28 October 2022, 08:59
I do not get it. Why is "correct place" specifically after first statement? Why it cannot be before first statement? That would seem more logical to me
0
Baurzhan Konurbayev
4 April 2021, 14:59
Didn't get the tasks purpose, but managed to complete.
0
Jurij Thmsn
8 November 2021, 15:04
I didn't even get the requirements. What do they mean by "Ensure the time slice is surrendered"?
0
DanExpert
22 February 2022, 08:58
Question: "What do they mean by "Ensure the time slice is surrendered"?"
Answer: They are saying to make the thread yield
0
matemate123
6 May, 11:46
The term "time slice is surrendered" typically refers to a situation where a process in a multitasking operating system voluntarily relinquishes its share of the CPU's processing time, allowing other processes to use it instead.
In a multitasking operating system, the CPU is divided into time slices, or small units of time, which are allocated to each running process in turn. When a process has completed its task or is waiting for input/output operations to complete, it may voluntarily surrender its time slice so that another process can use the CPU. This helps to ensure that all processes get a fair share of the CPU's processing time and that the system remains responsive.
The act of surrendering a time slice may be initiated by the process itself, or it may be triggered by the operating system, which may interrupt the process and schedule another process to run in its place.
0