• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Multi threading
 

Multi threading

on

  • 260 views

its a power point ppt describing multi threading

its a power point ppt describing multi threading

Statistics

Views

Total Views
260
Views on SlideShare
260
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Multi threading Multi threading Presentation Transcript

    • MULTI THREADING
    • MULTI-THREADING
      • Definition:
      • Process of executing a number of programs through a single program. The purpose of multi-threading program is to utilize the CPU processing time in maximum and to reduce CPU idle time.
    • THREAD
      • By default, a program is known as single threaded program as it normally follows a single line of execution.
    • CREATION OF THREADS
      • Threads can be created in two ways:
        • By implementing “Runnable Interface”
        • By extending “Thread Class”
    • THREAD LIFE CYCLE NEW (BORN) RUNNABLE BLOCKED DEAD Start( ) Stop( ) Run( ) Suspend( ) Wait( ) Sleep( ) Resume( ) Notify( ) Stop( ) Run( ) Stop( ) Run( )
    • JOIN METHOD
      • It forces the parent thread to wait for the termination all of its child threads i.e. the parent thread exists in memory till the termination of all of its child threads.
    • THREAD CLASS
      • String getname( )
      • Int getpriority( )
      • Set priority(in)
      • Current Thread
    • SYNCHRONISATION
      • Technique of sharing a common resource between multiple threads