What is multi-tasking? Types?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1763


What is ioc concept?

697


If your ui seems to freeze periodically, what might be a likely reason?

551


what is handle?

1857


Do I have to use jsps with my application?

586






Explain the difference between object state and behavior?

570


Is jvm a overhead?

631


What is metaspace?

552


how to use debug in my elipse to solve problems that exist in my project

1766


Why are some of the class and element names counter-intuitive?

577


What are the sequence of steps to write pub or sub model kind of application?

1895


What is ioc concept & explain it?

623


Explain ioc concept?

628


What are JTA/JTS and how they used by client?

1720


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

580