dwhall / farc

Framework for state machines with run-to-completion concurrency using asyncio. Python 3.4 or later
MIT License
28 stars 6 forks source link

Dining Philosophers Problem deadlock, Windows Python 3.11.5 #10

Open MiMiMeowMeow opened 11 months ago

MiMiMeowMeow commented 11 months ago

Hello,

Just a few issues/questions:

1) I picked up tried to run this recently on Windows 10, Python 3.11.5. It seems to deadlock now. image

2) Any thoughts of using coroutine and tasks? I'm thinking that version would more like the pre-emptive kernel when this on is the vanilla?

3) Any thoughts on using a libary like Trio? I think it can handle the Windows Ctl-C issue propertly... https://trio.readthedocs.io/en/stable/

Thanks!

dwhall commented 11 months ago

Thanks for the report. I'll take a look when we get to the weekend. For now just some quick/non-final answers:

dwhall commented 10 months ago

I was easily able to recreate the issue with examples/dpp.py on Mac OS X with Python 3.11.5.