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

What modifiers may be used with an inner class that is a member of an outer class?

0 Answers  


Describe activation process?

0 Answers  


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

3 Answers   Android, CA,


What is the use of Semaphore?

3 Answers  


what is diff between Access modifier and specifier?

5 Answers   L&T,






what is heepStored?

1 Answers  


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


Explain about thread synchronization inside a monitor?

0 Answers   Saksoft,


How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


What are various types of class loaders used by jvm?

0 Answers  


What is a class loader?

0 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


Categories