diff --git a/sim_disk.c b/sim_disk.c index a711a272..ffd504fc 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -428,6 +428,7 @@ if (ctx->asynch_io) { pthread_create (&ctx->io_thread, &attr, _disk_io, (void *)uptr); pthread_attr_destroy(&attr); uptr->a_check_completion = _disk_completion_dispatch; + sim_os_ms_sleep(50); /* Give the _disk_io thread a chance to stabilize */ } #endif return SCPE_OK; diff --git a/sim_tape.c b/sim_tape.c index 2a28e133..e43bfbd4 100644 --- a/sim_tape.c +++ b/sim_tape.c @@ -335,6 +335,7 @@ if (ctx->asynch_io) { pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM); pthread_create (&ctx->io_thread, &attr, _tape_io, (void *)uptr); pthread_attr_destroy(&attr); + sim_os_ms_sleep(50); /* Give the _tape_io thread a chance to stabilize */ } uptr->a_check_completion = _tape_completion_dispatch; #endif