mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 00:22:23 -07:00
35 lines
995 B
C
35 lines
995 B
C
#include <windows.h>
|
|
|
|
DWORD thread_entry_point(void *p)
|
|
{
|
|
for(int i = 0; i < 100000; i += 1)
|
|
{
|
|
OutputDebugString("this is a test\n");
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
HANDLE threads[] =
|
|
{
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
|
};
|
|
for(int i = 0; i < sizeof(threads)/sizeof(threads[0]); i += 1)
|
|
{
|
|
WaitForSingleObject(threads[i], INFINITE);
|
|
}
|
|
return 0;
|
|
}
|