Your SlideShare is downloading. ×
Multi threading
Multi threading
Multi threading
Multi threading
Multi threading
Multi threading
Multi threading
Multi threading
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Multi threading

210

Published on

its a power point ppt describing multi threading

its a power point ppt describing multi threading

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
210
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MULTI THREADING
  • 2. 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.
  • 3. THREAD
    • By default, a program is known as single threaded program as it normally follows a single line of execution.
  • 4. CREATION OF THREADS
    • Threads can be created in two ways:
      • By implementing “Runnable Interface”
      • By extending “Thread Class”
  • 5. THREAD LIFE CYCLE NEW (BORN) RUNNABLE BLOCKED DEAD Start( ) Stop( ) Run( ) Suspend( ) Wait( ) Sleep( ) Resume( ) Notify( ) Stop( ) Run( ) Stop( ) Run( )
  • 6. 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.
  • 7. THREAD CLASS
    • String getname( )
    • Int getpriority( )
    • Set priority(in)
    • Current Thread
  • 8. SYNCHRONISATION
    • Technique of sharing a common resource between multiple threads

×