0

will running an infinite loop for longer time will exhaust the system's memory or it will keep running without affecting the memory?

24th Jun 2016, 12:20 PM
Harsh Eglesiaa
Harsh Eglesiaa - avatar
3 Réponses
0
.
24th Jun 2016, 12:30 PM
Farhan Sadik
Farhan Sadik - avatar
0
It will exhaust the memory even may lead the system to crush So does openinig a file without closing it again
24th Jun 2016, 1:56 PM
Riadh F
Riadh F - avatar
0
It depends. i=1 while i > 0 i+=10 This will crash because of out of memory. while i>0 i=100 Will not.
24th Jun 2016, 6:37 PM
szymon