JaiswalTraining

Get the online training



Corejava Servlet Jsp  Php  Hibernate  Ajax Web Service   Ejb2.1 Ejb3.0 Struts Struts2  JPA Spring Ibatis   JSF    JSF2.0  CoreJavaDesignPattern    Jquery  Flex J2EE-Design-Patterns  Jboss7  Maven  Contact Me                                                                                                                                                                        
            IGNOU SMU PTU Project                                           Training                                                                                                                              
              

Contact Us  0091- 9210721663         jaiswaltraining@gmail.com





Get Best Tutorial on all major programing language

Corejava
Servlet
Jsp
Php
Hibernate
Ajax
Web Service
Ejb2.1
Ejb3.0
Struts  
Struts2
JPA
Spring
Ibatis
JSF
JSF2.0
CoreJavaDesignPattern
Jquery
Flex
J2EE-Design-Patterns
Jboss7
Maven







Thread
  • Is the sequential flow of control in a program
  • Is not a program on its own but runs within a program
  • Every program has atleast one thread that is called the primary  thread which
    can be accessed using the currentThread() method
  • Is also referred as a lightweight process or execution context
Program can be of two types:

  • single-threaded
  • multithreaded

Single-threaded Applications

  • An application that is made up of only one thread is called a single-threaded application
  • Can perform only one task at a time





Multithreaded Applications
  • An application having more than one threads is called a multithreaded application
  • Multiple threads in an application run at the same time, perform different tasks,
    and interact with each other
Can be created using any of the two methods:
  • subclassing the Thread class
  • implementing the Runnable interface