Design of Multithreaded Software by Bo I. Sandén
Author:Bo I. Sandén
Language: eng
Format: epub
ISBN: 9781118102732
Publisher: John Wiley & Sons
Published: 2011-04-04T16:00:00+00:00
The sequential-activities implementation of the bicycle odometer in Section 5.3.3 illustrates implicit state representation. Another example is an operator thread (Section 4.3.1.1) that steps through a series of interactions with a human user. Thus an ATM thread may be in a state S1 when waiting for a card to be inserted, in state S2 when waiting for a password, in state S3 when waiting for the user to choose a function, and so on. Identifying and naming all those trivial states is tiresome, unneeded, and sometimes even error prone. We are quite accustomed to such calls appearing one after the other in the program text however.
The Job threads in the FMS problem (Section 7.3.2.2) are sequential-activities threads, too. They are chiefly resource-user threads and can spend much of their time waiting for access. Here’s a slightly simplified version of the Job thread pseudocode:
Get information about first job step
while (not done)
Acquire workstation instand
Acquire storage stand
Acquire forklift
Travel to storage stand
Release forklift
while (True)
Acquire AGV
Travel to instand
Release storage stand or outstand, and AGV
Wait for job to appear on outstand
Get information about next job step
Break from inner loop if job done
Acquire instand of workstation for next step
Acquire storage stand // Continue here when job done
Acquire AGV
Travel to storage stand
Release AGV
Acquire forklift
Travel to bin
Release storage stand and forklift
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(16098)
The Mikado Method by Ola Ellnestam Daniel Brolund(13375)
Hello! Python by Anthony Briggs(13181)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(12341)
Dependency Injection in .NET by Mark Seemann(12198)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10955)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(10804)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10540)
Grails in Action by Glen Smith Peter Ledbrook(10264)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(10201)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9552)
Hit Refresh by Satya Nadella(9040)
Kotlin in Action by Dmitry Jemerov(8930)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8681)
The Kubernetes Operator Framework Book by Michael Dame(8488)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8308)
Robo-Advisor with Python by Aki Ranin(8261)
Practical Computer Architecture with Python and ARM by Alan Clements(8234)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8203)