GeeksforGeeks » Interview Questions
Google Interview Question for Software Engineer/Developer
(5 posts)-
How to crash your system immediately?
-
define "crash"
int *ptr = 0;
printf("%d", *ptr); -
make stack corrupted by stack overflow..as i think
-
type fsck command in terminal for linux machine
-
Many ways:
- Power the device abruptly.
- Kill all tasks running in the system, assuming execution in privileged mode.
- Stack overflow, kills a particular task, but not crashing the whole system.- Write a low level kernel code, which randomly zero-fills(junk values too) the primary memory.
Reply
You must log in to post.