The Developer's Library for D
About
Wiki
Forums
Source
Search
Contact
Ticket #595
: threadish_multi.d
File threadish_multi.d, 279 bytes (added by besquared, 1 year ago)
example break
Line
1
module
threadish
;
2
3
import
tango
.
core
.
Thread
;
4
5
void
main
(
char
[][]
args
)
{
6
Thread
first
=
new
Thread
({
7
int
[]
data
=
new
int
[
1000000
];
8
});
9
10
Thread
second
=
new
Thread
({
11
int
[]
data
=
new
int
[
1000000
];
12
});
13
14
first
.
start
();
15
second
.
start
();
16
17
first
.
join
();
18
second
.
join
();
19
}
Download in other formats:
Original Format
Roadmap
Timeline
Tickets
New Ticket
Help / Guide
About Trac
Login
|
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static
or
Dynamic