Just popping in
Joined: 2024/1/9 20:03 Last Login
: Yesterday 20:54
From Paris
Group:
Registered Users
|
Hi,
I have an program that is run in a shell window, it takes 90% of the CPU time (so CPUInfo reports), everything runs in a separate thread (created with pthread) i don't handle SIGBREAKF_CTRL_C in the main loop, just a loop with sleep(10) from pthread.
When i hit Ctrl+C the window reads: "***BREAK" and the CPU time suddenly drops to half the time while the threaded code still runs happily.
Question:
- Why does the program continue to run with only taking (apparently ?) half the CPU time ?
|