* initial revision

This commit is contained in:
florian 2002-10-13 13:53:00 +00:00
parent 417e589ad4
commit c905878b67

26
tests/test/tmt1.pas Normal file
View File

@ -0,0 +1,26 @@
{ %version=1.1 }
const
threadcount = 100;
finished : longint = 0;
function f(p : pointer) : longint;
var
s : ansistring;
i : longint;
begin
for i:=1 to 1000000 div threadcount do
s:=s+'1';
inc(finished);
end;
var
i : longint;
begin
for i:=1 to threadcount do
BeginThread(@f);
while finished<threadcount do
;
writeln(finished);
end.