C++11 threads seem to get shafted for cycles

Code, algorithms, languages, construction...
hyatt
Posts: 1242
Joined: Thu Jun 10, 2010 2:13 am
Real Name: Bob Hyatt (Robert M. Hyatt)
Location: University of Alabama at Birmingham
Contact:

Re: C++11 threads seem to get shafted for cycles

Post by hyatt » Mon Mar 31, 2014 4:00 am

When you over-subscribe CPU cycles, anything can happen. Who knows what C11 does regarding thread priority or anything else. For linux, for example, you could use nice +1 to nice+19 and vary a processes time quantum by a factor of 20 or so. That has unpredictable effect when there is competition (or not) for CPU cycles.

You are running an eclectic group of processes. I have seen some VM packages that use cpu cycles when doing nothing. Just to keep the O/S up to snuff regarding time and such. Not my cup of tea for chess, obviously.

kiroje
Posts: 1
Joined: Mon Apr 14, 2014 9:34 pm

Re: C++11 threads seem to get shafted for cycles

Post by kiroje » Mon Apr 14, 2014 9:41 pm

hyatt wrote:Task Manager is not exactly a useful tool, unfortunately. For windows I can't recommend anything.
I found this http://processhacker.sourceforge.net/ to be extremely usefull and very capable in windows enviroments to inspect threads and processes.

Post Reply