xxxxxxxxxx
import std.stdio;
import core.thread;
class App
{
public this()
{
foreach(i; 0..3)
{
Thread t = new Thread(&work);
t.start();
}
}
public void work()
{
writeln("start!");
try
{
ubyte[] data = new ubyte[13000];
}
catch(Error e)
{
writeln(e);
}
writeln("end!");
}
}
void main()
{
App app = new App();
}