Understand how the operating system manages hardware resources, processes, and concurrent execution.
Write a multithreaded script where multiple threads attempt to increment a shared counter, observe the race condition, and fix it using a Mutex.