Question: Create a script using a loop cycle counting from 1 to 10000. Use a semaphore to stop the script execution in the half of the
Create a script using a loop cycle counting from 1 to 10000. Use a semaphore to stop the script execution in the half of the total time of the execution and perform these operations. Create a file with name 'Loop' in the current directory with the following content: -First line: "System time at the start of the loop is: _____" -Second line: "System time at the half of the time of execution of the loop is: _____" -Third line: "System time at the end of the execution is: _____" -Fourth line: "Total time of the execution of the loop is: _____"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
