Легенда:
новое сообщение
закрытая нитка
новое сообщение
в закрытой нитке
старое сообщение
|
- Напоминаю, что масса вопросов по функционированию форума снимается после прочтения его описания.
- Новичкам также крайне полезно ознакомиться с данным документом.
а, ну может и так 03.05.06 13:06 Число просмотров: 2622
Автор: dl <Dmitry Leonov>
|
C практической точки зрения результат тот же. Хотя в MSDN есть такие слова:
How Processes are Terminated
A process executes until one of the following events occurs:
-Any thread of the process calls the ExitProcess function.
-The primary thread of the process returns.
-The last thread of the process terminates.
-Any thread calls the TerminateProcess function with a handle to the process.
-For console processes, the default console control handler calls ExitProcess when the console receives a CTRL+C or CTRL+BREAK signal.
-The user shuts down the system or logs off.
[...]
The primary thread can avoid terminating other threads by directing them to call ExitThread before causing the process to terminate (for more information, see Terminating a Thread). The primary thread can still call ExitProcess afterwards to ensure that all threads are terminated.
Надо будет проверить, собрав программу без стандартного рантайма.
|
|
|