Data update
This commit is contained in:
parent
157b70a810
commit
8e4e15fa56
78 changed files with 2016 additions and 222 deletions
15
Task/Fork/PascalABC.NET/fork.pas
Normal file
15
Task/Fork/PascalABC.NET/fork.pas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
uses System.Threading;
|
||||
|
||||
procedure Fork;
|
||||
begin
|
||||
WriteLn('Spawned Thread');
|
||||
end;
|
||||
|
||||
begin
|
||||
var t := new Thread(ThreadStart(Fork));
|
||||
t.Start;
|
||||
|
||||
WriteLn('Main Thread');
|
||||
t.Join;
|
||||
Readln;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue