Multithreading Chapter Goals To understand how multiple threads can execute in parallel To learn how to implement threads To understand race conditions and deadlocks To be…