Untitled

Anonymous
python
10/03/2026 1:00 PM
608 B
3
Indexable
import os

pid = os.fork()

if pid > 0:
    print("Parent Process")
    a = int(input("Enter 1st integer: "))
    b = int(input("Enter 2nd integer: "))
    c = int(input("Enter 3rd integer: "))

    largest = max(a, b, c)
    print("Largest number: ", largest)

    os.wait()
    print("Parent process completed.")

else:
    print("Child Process")
    os.execl("/bin/bash", "bash", "-c", "touch child-process; chmod 764 child-process")
Editor is loading...
Leave a Comment