Lines Matching refs:threads
12 use threads;
25 ### Basic usage with multiple threads ###
34 my $id = threads->tid();
42 my @threads;
43 push(@threads, threads->create('reader')) for (1..$nthreads);
52 $_->join() foreach @threads;
53 undef(@threads);
67 threads->create(sub {
86 my $id = threads->tid();
95 push(@threads, threads->create('reader2')) for (1..$nthreads);
100 $_->join() foreach @threads;
101 undef(@threads);
112 threads->create(sub {