Multithreading In modern operating systems, a process can have multiple threads They share the process's resources such as memory space, opened files. sockets. etc Advantages -Good for cPUs with multiple cores - -Can overlap different Io. E.g., a thread can wait for an input from the user, while another thread is receiving data from the network -Context switching between threads is faster than that between processes3 Multithreading • In modern operating systems, a process can have multiple threads —They share the process’s resources such as memory space, opened files, sockets, etc. • Advantages —Good for CPUs with multiple cores —Can overlap different IO. E.g., a thread can wait for an input from the user, while another thread is receiving data from the network —Context switching between threads is faster than that between processes