Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is multithreading?

Answers were Sorted based on User's Feedback



what is multithreading?..

Answer / priyabrata patro

at first ,let us know what is thread . Thread is also a functionality which executes concurrently with other of the program ,unlike general function.
Now let us see what is multithreading , executing mutiple thread simultaneously is called as multithreading.

Is This Answer Correct ?    5 Yes 0 No

what is multithreading?..

Answer / srinu

thread is the process of execution of program is called
thread



multithread means when sub programs is execute on parallel
at same time

Is This Answer Correct ?    5 Yes 0 No

what is multithreading?..

Answer / chaitanya

Multithreading allows two parts of the same program to run
concurrently

Is This Answer Correct ?    4 Yes 3 No

what is multithreading?..

Answer / shankar reddy

A thread executes a series of instructions. Every line of
code that is executed is done so by a thread. Some threads
can run for the entire life of the applet, while others are
alive for only a few milliseconds.

Multithreading is the ability to have various parts of
program perform program steps seemingly at the same time.
Java let programs interleave multiple program steps through
the use of threads. For example,one thread controls an
animation, while another does a computation. In Java,
multithreading is not only powerful, it is also easy to
implement.

You can implement threads within a java program in two
ways – Creating an object that extends Class Thread or
implementing the interface Runnable.

The key difference between the two is that Thread class has
a strart() method which your program simple calls whereas
the Runnable class does not have a start method and you
must create a Thread object and pass your thread to its
constructor method. You never call run() method directly;
the start method calls it for you.

Example:

Class MyProcess extends Thread{
Public void run(){
}
public static void main(String args[]){
MyProcess mp = new MyProcess();
mp.start();
}
}
Class MyProcess implements Runnable {
Public void run(){
}
public static void main(String args[]){
Thread mp = new Thread(new MyProcess());
mp.start();
}
}

Is This Answer Correct ?    2 Yes 1 No

what is multithreading?..

Answer / gv praveen kumar

flow of control is known as thread and multiple flow of control is known as multi thread.Our java program containing one thread at the time of execution and one more thread is been created at background of our java program known as garbage collector.every java program contains two threads given as multi thread.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

What is the use of conditional statement?

0 Answers  


Define nashorn in java8.

0 Answers  


What are the traverses in Binary Tree?

2 Answers   Adobe, Infosys,


how can we import the user defined package without classpath?

1 Answers   CSC, Infosys,


What is the range of the short type?

0 Answers  


Is null an object java?

0 Answers  


What do you mean by local variable and instance variable?

0 Answers  


How do constructors use this() and super()?

0 Answers  


What is bean? Where it can be used?

0 Answers  


Is there is any error if you have multiple main methods in the same class?

10 Answers   Infosys, Wipro,


What is java reflection api?

0 Answers  


Explain the difference between transient and volatile in java?

0 Answers  


Categories