Will the actions occurring in the two terminals be treated as two processes or two threads?
My ans -
They will be considered as processes because process is nothing but an instance of a program. And each time you open something on the terminal it creates a new instance of the program.
What if we create a cpp file in our system, then open two terminals and simultaneously run the same file on both of them, what will happen? Will there be a deadlock?
My ans - Yes,Deadlock do occur right as we are trying to use a memory resource that is already being used by some one else.
Correct Me If I am wrong??