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
What is colon_pkg_prefixes and what is its use?
Why won’t the jvm terminate when I close all the application windows?
Name the eight primitive java types.
What is the difference between RMI and Corba?
whats is mean by tiles in struts
How will you pass parameters in RMI? Why do you serialize?
What restrictions are placed on the location of a package statement within a source code file?
Which containers use a border layout as their default layout?
What are the types of scaling?
What is the relationship between the canvas class and the graphics class?
Is the session factory thread safe?
What is mdb and what is the special feature of that?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
Which javutil classes and interfaces support event handling?
Which are the different segments of memory?