{"id":"6a39fb539d471ebec53ba612","text":"#include <stdio.h>\r\n#include<conio.h>\r\n#include <dos.h>\r\nvoid threadFunction(int id) {\r\n printf(\"Thread %d: Hello from simulated thread!\\n\", id);\r\n delay(500); // Simulate thread execution delay\r\n}\r\nint main() {\r\n for (int i = 1; i <= 3; i++) {\r\n threadFunction(i); // Simulate thread-like function calls\r\n }\r\n printf(\"Main: All simulated threads finished.\\n\");\r\ngetch();\r\n return 0;\r\n}","title":"OS LAB 3","password":null,"paste_expiration":1784776786086,"encrypted":null,"createdAt":"2026-06-23T03:19:46.088Z"}