Docsity

Comparison of Manual and Automatic Task and Stack Management in Previous Work - Prof. Jona, Study notes of Computer Science

Partial preview of the text

Download Comparison of Manual and Automatic Task and Stack Management in Previous Work - Prof. Jona and more Study notes Computer Science in PDF only on Docsity!

Cooperative Task Management without Manual

Stack Management

Event-driven Programming is Not the Opposite of Threaded

Programming

Josh Triplett

January 31, 2006

Outline

• Previous work

• Typical thread and event models

• Five mostly orthogonal factors

• Task management versus stack management

• Implementation details

Outline

• Previous work

• Typical thread and event models

• Five mostly orthogonal factors

• Task management versus stack management

• Implementation details

Outline

• Previous work

• Typical thread and event models

• Five mostly orthogonal factors

• Task management versus stack management

• Implementation details

Lauer and Needham

• Threads and events “equivalent”

• No fundamental reason for performance to differ

• Conclusion: matter of preference

• Use whichever best fits application

Lauer and Needham

• Threads and events “equivalent”

• No fundamental reason for performance to differ

• Conclusion: matter of preference

• Use whichever best fits application

Lauer and Needham

• Threads and events “equivalent”

• No fundamental reason for performance to differ

• Conclusion: matter of preference

• Use whichever best fits application

Ousterhout

• Events simpler than threads

• No synchronization issues

• Use threads when true concurrency needed

• Issue: I/O

Ousterhout

• Events simpler than threads

• No synchronization issues

• Use threads when true concurrency needed

• Issue: I/O

Ousterhout

• Events simpler than threads

• No synchronization issues

• Use threads when true concurrency needed

• Issue: I/O

SEDA

• Compelling performance case

• High complexity

• Shared data requires synchronization

• Events imply breaking up computation

SEDA

• Compelling performance case

• High complexity

• Shared data requires synchronization

• Events imply breaking up computation

Typical thread-based architecture

• Automatic, preemptive scheduling

• Automatic stack management

• Blocking I/O OK

• Synchronization required

Typical thread-based architecture

• Automatic, preemptive scheduling

• Automatic stack management

• Blocking I/O OK

• Synchronization required