D Paste by mikolalysenko
Description: GC != Thread Safe?
Hide line numbers

Create new paste
Post a reply
View replies

Paste:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
import std.thread;

void main()
{
    for(int i=0; i<100000; i++)
    {
        (new Thread(
        {
            new char[50000];
            return 0;
        })).start;
    }
}

Replies:
No replies posted yet