What is thread?

Answers were Sorted based on User's Feedback



What is thread?..

Answer / l.gururajan

Thread is a path of the execution in a program.

Is This Answer Correct ?    6 Yes 0 No

What is thread?..

Answer / naveen

A thread is a part of program that follows a separate path of execution.
A thread is also called a light weight process as they share common resources

Is This Answer Correct ?    4 Yes 0 No

What is thread?..

Answer / avijit

Thread is a light weight process.

Is This Answer Correct ?    3 Yes 0 No

What is thread?..

Answer / lavanya

Thread is a sub-process.

Is This Answer Correct ?    3 Yes 0 No

What is thread?..

Answer / dsr

Thread is a independent sequential of program.

Is This Answer Correct ?    0 Yes 0 No

What is thread?..

Answer / javamasque

Threads are lightweight process which lives inside process. These are independently running programs which have concurrent path of execution. Each thread has its own 1. Java stack 2. Program counter and 3. Native stack but have common heap space. Multiple threads with in same process share same variables and objects. They allocates objects from same heap and even they can share same instructions (execution code) at particular time. As a result above common access they can easily share information to each other.

Every program has at least one thread i.e. main thread. JVM creates main thread which calls main method to execute whole program. The main thread is non-daemon thread. Any thread created by main method is non-daemon thread by default.

JVM has daemon threads for garbage collection, object finalization and other housekeeping jobs.

Is This Answer Correct ?    0 Yes 0 No

What is thread?..

Answer / kalva raju

thread is a small program

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

What are parent methods and how can you call them?

2 Answers  


Is namespace same as package in java?

0 Answers  


solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..

2 Answers  


What is a void method?

0 Answers  


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  






Which method must be implemented by all threads?

0 Answers  


What is the return type of a program?s main() method?

3 Answers  


What is the difference between method and means?

0 Answers  


primitive data types in Java ?

3 Answers  


Which is better stringbuffer or stringbuilder?

0 Answers  


Difference between ‘is-a’ and ‘has-a’ relationship in java?

0 Answers  


Can there be an abstract method without an abstract class?

0 Answers  


Categories