Threads and Processes -- efficiency comparison
-
Switching between heavy-weight processes for contemporary RISC processors is always in a millisecond range, the thread context switch is in a microsecond range.
-
Accessing a single data element takes from a couple to hundreds nanoseconds, initiating a single IPC between different processes takes from a few to tens of milliseconds.
|