3 ms·
>> Why is time spent on System is so much higher than the other one even though that one takes longer? > Good question but I don't know the answer. Don’t know
by masklinn 4y ago
>> Why is time spent on System is so much higher than the other one even though that one takes longer?
> Good question but I don't know the answer.
Don’t know if that’s the final answer here (didn’t actually investigate), but system is the time spent in syscalls, and locks are usually provided by the OS, aka syscalls (though there might be userland components to avoid the syscall e.g. futex).
Thus the need for synchronisation of threaded program generally leads to higher system time. Though here mold is clearly a lot more efficient as well (lower user time).