Quote:

The amount of happiness that you have depends on the amount of freedom you have in your heart

Sunday 25 December 2011

CS501 GDB 2010

CS 501
Topic:
“In order to achieve multitasking on a single conventional processor, it is favorable to use threads” Justify your comments with appropriate reasons.

Comments:
Multitasking is a method where multiple tasks, also known as processes, share common processing resources such as a CPU. In the case of a computer with a single CPU, only one task is said to be running at any point in time, meaning that the CPU is actively executing instructions for that task. Multitasking solves the problem by scheduling which task may be the one running at any given time, and when another waiting task gets a turn. Threads are subsets of a process. Multiple threads within a process share state as well as memory and other resources. Processes have separate address spaces, whereas threads share their address space. Multithreading, even for single-CPU systems, is the ability for an application to remain responsive to input. In a single-threaded program, if the main execution threads blocks on a long running task, the entire application can appear to freeze. Multithreaded program allows it to operate faster on computer systems that have multiple CPUs, CPUs with multiple cores.

No comments:

Post a Comment

“You can't change the past, but you can ruin the present by worrying about the future”