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 is the map interface?

0 Answers  


What is servlet preinitialization

1 Answers   iFlex,


What is the lifecycle of an applet?

2 Answers  


What is the difference between Process and Threads?

19 Answers  


1) what is synchronization? 2)write a program to show synchronization ? 3) what is orm? 4) what is getTemplete method and hw u use it? 5)write a singleton program ? 6) what is IOC concept & explain it? 7) methods of spring? 8)explain spring framework? 9)what are the oops concept? 10)what r the diff types of exception? 11)what is AOP(assepct oriented programing)? 12)jsp life cycle? 13)servlet life cycle? 14)how to u catch ur exception when executing a query in hibernate? 15)write javascript function? 16)write a querry to join two tables? 17)wap to show inheritance and use of interface? 18)explain the project? 19)in spring bean class uses singleton or prototype? 20)Explain prototype?

1 Answers   Cap Gemini,






What is resource bundle?

1 Answers  


How to pass parameters in RMI?

0 Answers  


How JNDI is used in JMS ?

1 Answers  


Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");

8 Answers  


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

2 Answers   GM General Motors,


What is a compilation unit?

1 Answers  


the use of try and ffinally keyword

1 Answers  


Categories