By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

What Is Thread

P: 15
Tell Me What Is Thread
Feb 12 '07 #1
Share this Question
Share on Google+
10 Replies


10K+
P: 13,264
Tell Me What Is Thread
Read a threads tutorial.
Feb 12 '07 #2

100+
P: 157
Tell Me What Is Thread
Hi,
Unlike many other computer languages, Java provides built-in support for multithreaded programming. A multithreaded program contains two or more parts that can run concurrently.Each part of such a program is called a thread, each thread defines a seperate path of execution.

Multithreading enables you to write very efficient programs that make maximum use of the CPU, because idle time can be kept to a minimum.This is especially important for the interactive, networked environment in which Java operates, because idle time is common and by using threads it can be minimized!

This was a very general description, you must go through a tutorial on threads to get a good idea!
Feb 12 '07 #3

dmjpro
100+
P: 2,476
i think u better to look for a good site .... www.sun.com
Feb 12 '07 #4

P: 1
Thread is as similar as for other languages,
It works simuntaneously different work at once without spending more time.
Mar 13 '07 #5

P: 2
Please follow these links to know abou java threads

Java

Threads
Apr 28 '16 #6

Kara Hewett
P: 27
A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently.

Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. Each thread may or may not also be marked as a daemon. When code running in some thread creates a new Thread object, the new thread has its priority initially set equal to the priority of the creating thread, and is a daemon thread if and only if the creating thread is a daemon.

When a Java Virtual Machine starts up, there is usually a single non-daemon thread (which typically calls the method named main of some designated class). The Java Virtual Machine continues to execute threads until either of the following occurs:
•The exit method of class Runtime has been called and the security manager has permitted the exit operation to take place.
•All threads that are not daemon threads have died, either by returning from the call to the run method or by throwing an exception that propagates beyond the run method.
Jun 15 '16 #7

P: 6
Multithreading refers to two or more tasks executing concurrently within a single program. A thread is an independent path of execution within a program. Many threads can run concurrently within a program. Every thread in Java is created and controlled by the java.lang.Thread class. A Java program can have many threads, and these threads can run concurrently, either asynchronously or synchronously.
Jul 6 '16 #8

P: 35
A thread is actually a lightweight process. Unlike many other computer languages, Java provides built-in support for multithreaded programming. A multithreaded program contains two or more parts that can run concurrently. Each part of such a program is called thread and each thread defines a separate path of execution. Thus, multithreading is a specialized form of multitasking.It is a separate path of execution.
May 11 '20 #9

P: 3
threads help to execute tasks concurrently
3 Weeks Ago #10

P: 21
A process can have multiple threads. A thread is actually a path of execution within a process. A thread is can placeholder data associated with a single use of a program that can control multiple concurrent users
2 Weeks Ago #11

Post your reply

Sign in to post your reply or Sign up for a free account.