Skip to content

Comments

Multithreading#1

Open
Patertuck wants to merge 27 commits intoMEPalma:mainfrom
Patertuck:multithreading
Open

Multithreading#1
Patertuck wants to merge 27 commits intoMEPalma:mainfrom
Patertuck:multithreading

Conversation

@Patertuck
Copy link

@Patertuck Patertuck commented Sep 16, 2025

This PR extends MONA with a prototype implementation of deterministic multithreading as part of my bachelor thesis done at UZH.

Key changes include:

  • A centralized message queue to capture and replay thread scheduling decisions.
  • A thread environment map to store per-thread state at snapshot boundaries.
  • A global step counter to synchronize snapshot creation across threads.

New language constructs: spawn { … } and join; for basic parallelism.

One should use Python's 3.13’s experimental free-threaded runtime to enable true multicore execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant