give two reasons why it might be advantages to write multi - threaded program instead of a single threaded program?
Advantages of Multi-threaded program instead of single threaded program are -
1) Multi-threaded program enhances the performance of program by decreasing the development time of it . It is because in Multi-threaded program work will be divided into many threads and that will increase the performance of the program and in single threaded program work will be done by single thread so it will take more time for program to execute.
2) Multi -threaded program will be more responsiveness than single threaded program , because multi-threading program that is running in some application will be running if any part of it is blocked or it is performing lengthy operation and therefore it will increase the responsiveness of program , and in case of single threaded program , if a program is stuck or blocked at some point then the whole application will get stuck .
Get Answers For Free
Most questions answered within 1 hours.