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

how do you Handle Front End Application data against DB with example?

1 Answers   Campus Interaction, HCL,


difference of inheritance and interface

3 Answers  


What is multi-tasking? Types?

1 Answers  


When a thread blocks on i/o?

1 Answers  


In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,


What is Stream and Types?

2 Answers   Patni,


Is jvm a overhead?

1 Answers  


What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


What is meant by Superconductivity?

4 Answers  


What is the use of Class.forName

20 Answers   HCL,


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1 Answers  


what are the advantages of JTA over JTS?

1 Answers  


Categories