Re: [OT] Finite vs Infinite State Machines?
Re: [OT] Finite vs Infinite State Machines?
- Subject: Re: [OT] Finite vs Infinite State Machines?
- From: Graham Cox <email@hidden>
- Date: Thu, 14 Jun 2012 14:12:02 +1000
On 14/06/2012, at 8:03 AM, Dave wrote:
> In assembler this would be implemented is using an "Exchange Instruction" to alter the PC on the stack and cause it to return to the correct place once the ASync Task (usually an interrupt) had finished.
Ah, those were the days - push a calculated address on the stack and do a 'RET' to cause a jump to that address... thankfully such tricks are wholly unnecessary these days. In fact a simple switch...case statement does the same job in most cases.
I'm not sure of the answer to your question though, seems to me you could simply queue each task then the next executes as soon as the one ahead of it finishes.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden