Redesign scheduling points
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s

This commit is contained in:
2026-01-30 02:36:27 +01:00
parent d2f5c032d9
commit 124aa12f5b
9 changed files with 60 additions and 35 deletions

View File

@@ -24,12 +24,28 @@ void app_proc1 (void) {
process_quit ();
}
void app_proc2 (void) {
letter = 'd';
for (;;) {
mutex_lock (MUTEX);
for (int i = 0; i < 3; i++)
test (letter);
mutex_unlock (MUTEX);
}
process_quit ();
}
void app_main (void) {
mutex_create (MUTEX);
letter = 'a';
process_spawn (&app_proc1);
process_spawn (&app_proc2);
for (;;) {
mutex_lock (MUTEX);