This is a simple program written by me in c. This program will open infinite windows recursively. I made this program few days back when i was reading about system function in c. So here is the code:
/* system function require stdlib.h header file */
for(;;) /* This will create an endless loop */
system("exo-open --launch TerminalEmulator"); /* Here Termianal Emulator windows will start launching. here TerminalEmulator is the name of Terminal used by xfce, you should check terminal emulator comes with your Desktop environment. */
system("explorer.exe"); /* This should start launching explorer.exe (windows explorer) in windows */
What system function do it creates child processes for the shell command and it terminates after the completion of child process. You should comment out the other system function line, e.g. if you are in windows comment out the line with exo-open --launch TerminalEmulator and vice versa. Compile it with gcc. And try to run it.