Here is what I know about concurrency in the OS.
To start multitasking in the OS, the CPU will allocate a time interval for each task. When performing task A, the other task will be "sleeping", etc.
Here is my question:
I have a timer program that counts on keyboard / mouse inaction. If inactivity continues for 15 minutes, a splash screen pop-up will appear.
If the concurrency theory is given above, will the timer be inaccurate? Since each program running in the OS will have some “sleep” time, then the timer program also has a chance to “sleep”, but in the real world time does not stop.
thinksloth
source
share