Chapter 15 - Threads and Locks

One-stop information center for your next technical interview


Chapter 15 - Threads and Locks

Distinguish process, thread and coroutine. Java has Runnable interface and Thread class to implement multi-thread programming.

Exercises

15.1 Thread vs Process

Thread is more light-weight than process.

15.2 Context Switch

Context switch is the time spent between the last statement of one process and the first statement of the next process.