Monitor object
Upcoming SlideShare
Loading in...5
×
 

Monitor object

on

  • 1,445 views

 

Statistics

Views

Total Views
1,445
Views on SlideShare
1,433
Embed Views
12

Actions

Likes
0
Downloads
8
Comments
0

1 Embed 12

http://charsyam.pe.kr 12

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Monitor object Monitor object Presentation Transcript

    • Monitor Object charsyam@naver.com
    • Multiple Threads
    • Multiple Threads Shared Object
    • Thread-Safe
    • Passive-Object
    • Thread-Safe Passive-ObjectPattern
    • Active Object THREAD 1 THREAD 2 Processor Caller ITEM 1 ITEM 1 ITEM 1
    • Active Object Caller Thread other-Threads Process Thread
    • Passive Object THREAD 1 THREAD 2Processor Processor ITEM 1 ITEM 1 ITEM 1
    • Passive Object Each Thread Process Shared Object
    • Active Object VS Monitor Object
    • Active Object VS Monitor Object
    • Monitor Object is
    • Monitor Object is Part Of Active Object
    • EXAMPLE
    • QUEUE
    • INMulti-Thread
    • NEEDSynchronization Mechanisms
    • THREAD 1 ITEM 1 THREAD 2 ITEM 2 ITEM 3 ITEM 4 ITEM 5
    • THREAD 1 ITEM 1 THREAD 2 ITEM 2 INSERT ITEM 3 ITEM 4 ITEM 5
    • THREAD 1 ITEM 1 THREAD 2 ITEM 2 INSERT ITEM 3 INSERT ITEM 4 ITEM 5
    • THREAD 1 ITEM 1 THREAD 2 ITEM 2 INSERT ITEM 3 INSERT ITEM 4 ITEM 5 BROKEN
    • No Item In Queue
    • THREAD 1 THREAD 2 Pop No Items
    • THREAD 1 THREAD 2 Pop No ItemsWAIT
    • THREAD 1 ITEM 1 THREAD 2 Insert PopWAIT
    • THREAD 1 ITEM 1 THREAD 2 Insert PopNOTIFY
    • THREAD 1 ITEM 1 THREAD 2 Pop
    • Monitor Object
    • WithThread-Safe Interface
    • External Interface
    • Thread-Safe Interface
    • Lock and Notify – 1/2
    • Lock and Notify – 2/2
    • Lock and Notify – 2/2
    • Empty and Full
    • put
    • Get
    • SYNCH_STRATEGY 1/2
    • SYNCH_STRATEGY 2/2
    • Connection Pool
    • Multi-Thread Queue
    • BenefitsSimplification of concurrency controlSimplification of scheduling methodexecution
    • BenefitsSimplification of concurrency controlSimplification of scheduling methodexecution
    • LiabilitiesComplicated extensibility of couplingwith Monitor Object’sInheritance anomalyNested Monitor Lockout
    • LiabilitiesComplicated extensibility of couplingwith Monitor Object’sInheritance anomalyNested Monitor Lockout
    • LiabilitiesComplicated extensibility of couplingwith Monitor Object’sInheritance anomalyNested Monitor Lockout
    • THANK YOU!