22 lines
190 KiB
Plaintext
Raw Normal View History

2026-01-29 07:42:06 +01:00
TASK: Run two different Python scripts asynchronously at the same time. Script A: 'import time; time.sleep(5); print("Script A Done")'. Script B: 'import time; time.sleep(5); print("Script B Done")'. Poll both until finished and write their combined outputs to 'parallel_results.txt'.
----------------------------------------
Loading...
┌─── Python Source Code ─────────────────────────────────────
│  1 | import time; time.sleep(5); print("Script A Done")
└────────────────────────────────────────────────────────────
┌─── Python Source Code ─────────────────────────────────────
│  1 | import time; time.sleep(5); print("Script B Done")
└────────────────────────────────────────────────────────────
[213826] Script A Done
[213827] Script B Done
-> Writing file: parallel_results.txt
  CHANGES: parallel_results.txt 
LINE OLD
--------------------------------------------------------------------------------------------------------------------------------------------
1 Script A Done
2 Script B Done
The two scripts have completed execution. Their combined output has been written to 'parallel_results.txt'.