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 a thread?

Answers were Sorted based on User's Feedback



what is a thread?..

Answer / chandrarekha

Thread is a path of execution of a program and java
supports multi-thread programming

Is This Answer Correct ?    8 Yes 0 No

what is a thread?..

Answer / kavitha

Thread is block of code which can execute concurrently with
other threads in JVM(Java Virtual Machine)

Is This Answer Correct ?    6 Yes 0 No

what is a thread?..

Answer / venod.r.g

Thread is a class which extends Thread class or Implements
Runnable Interface.
Thread can run as an Independant process than current
Excecution steps. The Main thread that runs always is known
as CurrentThread accessed by Thread.currentThread();
Only one thread can access CPU time ( JVM then CPU). Multi
thread mechanisum is possible by making several threads in
waiting state and running only one at a time.

JVM assign priorities for every threads and accesses in a
Time Slicing / scheduled way considering the OS.

Defauls is normal.

Every object is like a Football to threads. hence Every
object must have methods to handle a thread. All the
players may be running in the field but only one player can
handle the Ball at a time. Object have methods like wait(),
notify() notifyAll() etc to catch and release the working
thread.

If you do not want a ball to change shape once it is
accessed by a thread then you need to synchronise the
statements or methods. Once synchronized the thread which
is the owner of the Object can only change the state of the
object.
//Method
public void synchronized x(){
}

//statement
synchronized (x);

Is This Answer Correct ?    6 Yes 0 No

what is a thread?..

Answer / ravikiran

thread is a sequential execution flow of control

Is This Answer Correct ?    6 Yes 0 No

what is a thread?..

Answer / deepa

Thread is a process of execution of work.
In a java application ,the thread starts when the
main() starts executing till the whole Application is
executed.
Java supports multi threading,Multi threading is a concept
where more than one thread can be used in a program while
executing the applicaton.

Is This Answer Correct ?    2 Yes 0 No

what is a thread?..

Answer / vikas

Thread is a part of a program that is in Execution.
It is a Light weight process.

Is This Answer Correct ?    2 Yes 0 No

what is a thread?..

Answer / sharvari

Thread is a unit of program code in execution. It is unit of
dispatching.
Thread can be viewed as an independent program counter
within a process.
Basically it reduces switching overhead and helps
multiprogramming.

Is This Answer Correct ?    2 Yes 0 No

what is a thread?..

Answer / meganathanm

thread is a concept of java which help is help to tie the
process one between another, also it give a new one called
multiple process run in same time called multi threading....

Is This Answer Correct ?    1 Yes 1 No

what is a thread?..

Answer / prasanth

thread is a light weight sub process

Is This Answer Correct ?    0 Yes 0 No

what is a thread?..

Answer / bhushan

Thread is light weight process.
One Process can have multiple threads.
Eg:
I opened Microsoft Word doc and writing at the same time
spell checker is also running.
It implies in 1 process multiple threads can run
simultaneously with less overhead.
To create separate process for different functionality will
create overhead.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Core Java Interview Questions

Can we sort set in java?

0 Answers  


Difference between abtsract & final

1 Answers   Nous,


how many types of Inheritance?

0 Answers   Impetus,


Are there any tools available in java to create reports?

5 Answers  


What classes of exceptions, caught by a catch clause?

1 Answers  


How is the marker interface used in Java?

0 Answers   BirlaSoft,


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


What is array command?

0 Answers  


What are the actions that can occur when a thread enters blocked state?

0 Answers  


Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?

7 Answers   Ericsson,


What is hash table in java?

0 Answers  


Difference between String & StringBuffer

16 Answers   IBM, Infosys, Tech Mahindra, Wipro,


Categories