Can XP limit # of threads running ?

A

Andy

Linux is able to limit the number of threads that can be started.

Can Windows XP do the same ?

What does the start line do ?

I know start can open a program in another window.

Running this in Win 95 -> XP will cause a locked system !!!

Not even Ctrl Alt Delete can stop it. :)

@echo off
:: A fork bomb using the Microsoft Windows batch language:
:: WARNING !! THIS LOCKS UP YOUR SYSTEM !!!
:s
start "" %0
goto s
 
J

JJ

Linux is able to limit the number of threads that can be started.

Can Windows XP do the same ?

What does the start line do ?

I know start can open a program in another window.

Running this in Win 95 -> XP will cause a locked system !!!

Not even Ctrl Alt Delete can stop it. :)

No. Windows can't limit this. In Windows, the limit is determined by the
available virtual memory. However, for each process with default stack size
(specified in the PE header), the maximum number of threads that can be
created for a process is 2028. Increasing the default stack size will reduce
the limit. With default stack size, each thread has 1MB of stack space.

I think this can only be done by HIPS or antivirus with HIPS features.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top