FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_programs/MultiThreadGroupMain.java at master · VinayManyam/java_programs · GitHub
VinayManyam
/
java_programs
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_programs
/
MultiThreadGroupMain.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 663 Bytes
Breadcrumbs
java_programs
/
MultiThreadGroupMain.java
Copy path
File metadata and controls
24 lines (20 loc) · 663 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package
MultiThreading
;
public
class
MultiThreadGroupMain
{
public
static
void
main
(
String
[]
a
)
throws
InterruptedException
{
System
.
out
.
println
(
"MultiThreadGroupMain main()"
);
ThreadGroup
b
=
new
ThreadGroup
(
"GroupA"
);
ThreadGroup
c
=
new
ThreadGroup
(
"GroupB"
);
MultiThreadGroup
d
=
new
MultiThreadGroup
(
b
,
"Thread1"
);
MultiThreadGroup
f
=
new
MultiThreadGroup
(
b
,
"Thread2"
);
MultiThreadGroup
e
=
new
MultiThreadGroup
(
c
,
"Thread3"
);
MultiThreadGroup
g
=
new
MultiThreadGroup
(
c
,
"Thread4"
);
b
.
list
();
c
.
list
();
Thread
.
sleep
(
5000
);
/* d.join();
f.join();
e.join();
g.join();*/
System
.
out
.
println
(
"MultiThreadGroupMain main() end"
);
}
}
Back
|
FazBrowse Home
|
New Git URL