Divider Connect on Facebook Connect on Instagram Connect on Twitter YouTube email Email RSS Icon >

Thread Latency

Cost of Creating C++ Threads

Cost of C++ Threads
Cost of C++ Threads
November 13, 2006 at 2:14am

The emperical relation between the number of threads (x) and the time taken (in nanoseconds) to create these threads (y) is:
y = 143000 + 34700x

Thread-creation was tested on the following platform:

Number of Threads Initialization Cost (Nanoseconds)
1 350131
10 894314
100 3531170
1000 46405136
10000 339174392
20000 675557337
30000 1056340065