What is multi-tasking? Types?



What is multi-tasking? Types?..

Answer / ram nidadavolu

A multithreaded program contains two or more parts that can
run concurrently, Each part a program is called thread and
each part that defines a separate path of execution.
Thus multithreading is a specified from of multitasking .

There are two distinct types of multitasking .
Process: A Process is , in essence , a program that is
executing.
2 Process-based :is heavy weight- allows you run two or
more programs concurrently.
Eg: you can use JAVA compiler at the same time you are using
text editor.
Here a program is a small unit of code that can be
dispatched by scheduler .

Thread-based: is Light weight- A Program can perform two or
more tasks simultaneously.
Creating a thread:
Eg: A text editor can formate at the same time you can
print, as long as these two tasks are being perform separate
threads.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Define aop(assepct oriented programing)?

0 Answers  


Connection Pooling with different type of databases?

1 Answers  


What are the different class loaders used by jvm?

0 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


Difference between swing and awt?

0 Answers  






explain session tracking. why we used it

3 Answers   Lionbridge,


Difference between new operator and class.forname().newinstance()?

0 Answers  


Which class is the immediate superclass of the menucomponent class?

0 Answers  


What are the advanatages of RMI ?

1 Answers   HGS,


Why use a datasource when you can directly specify a connection details?

0 Answers  


How is a java object message delivered to a non-java client?

0 Answers  


Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance...

2 Answers   NSN,


Categories