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

Which are the different segments of memory?

0 Answers  


Is there a guarantee of uniqueness for entity beans?

0 Answers  


How primary key is implemented in Oracle?

0 Answers  


difference between applicationserver and webserver

4 Answers   SolutionNET,


What is a modular application? What does module-relative mean?

0 Answers  






What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


What classes of exceptions may be caught by a catch clause?

0 Answers  


what is a dirty read?

1 Answers  


Are we allowed to change the transaction isolation property in middle of a transaction?

0 Answers  


difference between applicationserver and webserver

2 Answers   SolutionNET,


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?

1 Answers   L&T,


what is the RMI / IIOP?

3 Answers  


Categories