top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What happens if RAM is full and still user tries to run a program?

0 votes

OS crash?
or process will be in virtual memory?

posted Jun 19, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

No process will not crash, it will use virtual memory for the program which is bigger then RAM itself.

answer Jun 19, 2015 by Salil Agrawal
Then Why, OS crashes when we do something like,

fork is creation of process and you are creating number of processes infinitely and resources exhaust (there are many resources RAM, Virtual memory, ids etc etc) most likely virtual memory exhaust and there is a crash.
Similar Questions
+2 votes

Let's say I have an exe-file (for example computer game) and need to forbid to run it until certain date or time during the day. Any 'manipulations' with file are allowed.

Could you, please, offer me a simple way of how to encode/decode such a file mostly in C or C++?