- @echo off
- ::提升内存占用率,但不占用CPU。
- ::默认打开200个CMD进程
- set cmdwnd=200
- if "%1"=="e" (goto loop)
- for /l %%a in (2,1,%cmdwnd%) do (start /b "" %~s0 e)
-
- :loop
- pause
- goto loop
- exit
复制代码
- @echo off
- ::提升内存占用率,并使CPU使用率100%
- ::默认打开200个CMD进程
- set cmdwnd=200
- if "%1"=="e" (goto loop)
- for /l %%a in (2,1,%cmdwnd%) do (start /b "" %~s0 e)
-
- :loop
- for /l %%a in (1,1,100000) do (echo.>nul)
- goto loop
- exit
复制代码
|