The console application will never “Do Not Answer” from the perspective of Windows Task Manager. In fact, the task manager does not start your program, it launches the shell (cmd.exe) on which your program is running, and this shell is written so that it will always respond even if your program is missing. If you do not run your program through the shell, but run it directly, then there will be no user interface for the program, and it will not be an “application” in the task manager (this means that it will not be displayed in the “Application” tab), this it will be just a process.
If you just need to emulate any Do Not Respond program from the point of view of the task manager, you should make a simple winforms application and put it in an endless loop. If there is some obscure way to make the Do Not Responsive program from a console application, at least it will be much more complicated than with any of the standard types of desktop GUIs.
Servy source share