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 |
How are commas used in the intialization and iteration parts of a for statement?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What happens when a thread cannot acquire a lock on an object?
When you will synchronize your code?
hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?
how can we load a file of a user in the database table?
Can I use multiple html form elements with the same name?
Why does the option tag render selected=selected instead of just selected?
What is RMI Registry?
6 Answers Siemens, United Software Solutions,
whats is mean by filter?
Do you think that java should have had pointers?
What is diffennce between AWT & SWING?