Mutli Threading in Java
#1

[attachment=10101]
Mutli Threading in Java
• Java provides native support for multithreading.
• This support is centered on the java.lang.Thread class, the java.lang.Runnable interface methods
• public void start()
Starts the thread in a separate path of execution, then invokes the run() method on this Thread object.
• public void run()
If this Thread object was instantiated using a separate Runnable target, the run() method is invoked on that Runnable object.
• public final void setName(String name)
Changes the name of the Thread object. There is also a getName() method for retrieving the name.
• public final void setPriority(int priority)
Sets the priority of this Thread object. The possible values are between 1 and 10.
• public final void setDaemon(boolean on)
A parameter of true denotes this Thread as a daemon thread.
• public void interrupt()
Interrupts this thread, causing it to continue execution if it was blocked for any reason.
• public final boolean isAlive()
Returns true if the thread is alive, which is any time after the thread has been started but before it runs to completion.
• public static void yield()
Causes the currently running thread to yield to any other threads of the same priority that are waiting to be scheduled
• public static void sleep(long millisec)
Causes the currently running thread to block for at least the specified number of milliseconds
• public static Thread currentThread()
Returns a reference to the currently running thread, which is the thread that invokes this method.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: basic types of typres in threading, seminar report on threading in java, threading, datgridview vs vs2013 threading example, threading in c,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  E-COMPILER FOR JAVA WITH SECURITY EDITOR smart paper boy 7 11,869 27-07-2013, 01:06 PM
Last Post: computer topic
  E-COMPILER FOR JAVA WITH SECURITY EDITOR seminar class 9 13,643 24-06-2013, 11:44 AM
Last Post: Guest
  Java Cryptography Architecture (JCA) seminar projects crazy 1 2,571 17-12-2012, 01:51 PM
Last Post: seminar details
Lightbulb Java Cryptography Architecture (JCA) computer science crazy 1 2,622 17-12-2012, 01:51 PM
Last Post: seminar details
  Java Programs IO STREAMS computer girl 0 835 08-06-2012, 12:17 PM
Last Post: computer girl
  if u can help me in java RMI ahmed abed 2 1,757 04-02-2012, 11:37 AM
Last Post: seminar addict
  Hyper-Threading technology computer science crazy 1 2,304 04-02-2012, 11:16 AM
Last Post: seminar addict
  HYPER THREADING seminars report computer science crazy 5 8,701 04-02-2012, 11:15 AM
Last Post: seminar addict
  JAVA RMI Technology seminar surveyer 3 3,194 26-01-2012, 10:31 AM
Last Post: seminar addict
  JAVA RING A SEMINAR REPORT Computer Science Clay 6 6,632 07-01-2012, 12:19 PM
Last Post: project uploader

Forum Jump: