Introduction:
Q:what is multitasking?
A: executing multiple tasks at a time.
Categories of multitasking:
Executing several tasks simultaneously is the concept of multitasking.
1) process based multitasking
executing several tasks simultaneously where each task is a seperate and independent program/process.
Example: while typing ajava program in the editor we can listen music from same system. At the same time, we can download a file form internet. All these tasks will be executed simultaneously and independent of each other. Hence, it is process based multitasking.
process based multitasking is best suitable at os level.
2) thread based multitasking
executing several task simultaneously where each task is a seperate independent part of the same program. And each indepenedent part is called a thread.
Thread based multitasking is best suitable at programatic level
whether it is process based or thread based, the main objective of multitasking is to reduce response time of the system and to improve performance.
The main important application areas of multithreading are:
1) to develop multimedia graphics
2) to develop animations
3) to develop video games
4) to develop web servers and application servers. tomcat default threads for handling requests is 60.
When compared with old languages, developing multithreaded applications in java is very easy becaues java provides inbuilt support for multithreading with rich API[Thread,Runnable,ThreadGroup,...]
Q:what is multitasking?
A: executing multiple tasks at a time.
Categories of multitasking:
Executing several tasks simultaneously is the concept of multitasking.
1) process based multitasking
executing several tasks simultaneously where each task is a seperate and independent program/process.
Example: while typing ajava program in the editor we can listen music from same system. At the same time, we can download a file form internet. All these tasks will be executed simultaneously and independent of each other. Hence, it is process based multitasking.
process based multitasking is best suitable at os level.
2) thread based multitasking
executing several task simultaneously where each task is a seperate independent part of the same program. And each indepenedent part is called a thread.
Thread based multitasking is best suitable at programatic level
whether it is process based or thread based, the main objective of multitasking is to reduce response time of the system and to improve performance.
The main important application areas of multithreading are:
1) to develop multimedia graphics
2) to develop animations
3) to develop video games
4) to develop web servers and application servers. tomcat default threads for handling requests is 60.
When compared with old languages, developing multithreaded applications in java is very easy becaues java provides inbuilt support for multithreading with rich API[Thread,Runnable,ThreadGroup,...]
0 comments:
Post a Comment