MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / run

Method run

day23/code/day23_Thread/src/cn/itcast_04/ThreadYield.java:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3public class ThreadYield extends Thread {
4 @Override
5 public void run() {
6 for (int x = 0; x < 100; x++) {
7 System.out.println(getName() + ":" + x);
8 Thread.yield();
9 }
10 }
11}

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected