Answer:
Hi!
It is not possible to have a deadlock involving only one process.
Explanation:
Deadlock is only possible if there are multiple processes trying to access the same shared resources. Another way to see it is if you have shared resources only can be a deadlock if multiple processes attempt to use it.
With only one process, you can use shared resources without the risk of fall into deadlock, but you don't have concurrence either.
Answer:
See explaination for program code.
Explanation:
inputFileName = input("Input filename: ") outputFileName = input("Output filename: ") inputFile = open(inputFileName, "r") outputFile = open(outputFileName, "w") count = 1 for line in inputFile: newLine = str(count).rjust(4, " ") + "> " + line outputFile.write(newLine) print(newLine) count += 1
Answer:
1.) There are 12 function keys 2.) The return Key
Explanation:
Need further information!!!