Write a program that uses fork and exec to run a 5 user-defined program by 5 different children and kills it if does not complete in 5 seconds.
This is honestly all I was able to do and it’s not even doing what I need it to do . I’m very new to this and I’m trying to understand what I need to do. Sorry if it appeared as if I’m only looking for answers . I’m just looking for help and even some hint or tips would help a lot because currently whatever I tried is completely wrong