130k views
0 votes
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened. Similarly, all output is performed just before the program terminates, when the program results must be written to a single file. Between startup and termination, the program is entirely CPU-bound. Your task is to improve the performance of this application by multithreading it.

User Chely
by
4.9k points

1 Answer

5 votes

Answer and Explanation:

  • A solitary processor can just execute each thing in turn. Various processors, then again, can accomplish different things in parallel. In this way, multiprocessor frameworks can execute different strings simultaneously, which moves us past a straightforward deception into regions with genuine execution gains.
  • Multi-threading in an application, interactive in nature which may enable a program to keep running regardless of whether a piece of it is blocked or is playing out a protracted activity, in this manner expanding responsiveness to the client.
  • Multi threading is utilized for simultaneousness of information and better execution.
User Derek Lee
by
5.4k points