Question 1 of 30
In a multi-threaded application, a developer is trying to optimize the performance of a CPU-bound task that involves processing large datasets. The application is designed to utilize multiple threads to improve throughput. However, the developer notices that the performance does not scale linearly with the number of threads. Given that the system has 8 CPU cores, which of the following strategies would most effectively enhance the scheduling and execution of threads in this scenario?
Implementing a thread pool to manage the threads efficiently and reduce the overhead of thread creation and destruction.
Increasing the priority of all threads to ensure they receive more CPU time.
Using a single thread to handle all data processing to avoid context switching.
Allowing threads to run indefinitely without any synchronization to maximize CPU usage.

Preparing for Microsoft 98-349 Windows Operating System Fundamentals? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free