© Thomas Kunz 2000
SCE 574
189
   Benefits of Threads
äExample 1: a file server on a LAN
äIt needs to handle several file requests over a short period äHence more efficient to create (and destroy) a single thread for each request äOn a SMP machine: multiple threads can possibly be executing simultaneously on different processors äExample 2: one thread display menu and read user input while the other threads execute user commands