Skip to content

Commit

Permalink
for start multi thread
Browse files Browse the repository at this point in the history
  • Loading branch information
mainlxl committed Dec 6, 2021
1 parent e7ce405 commit 4f31551
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions app/src/main/java/com/imf/test/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,30 +68,14 @@ public void run() {
}

private void loadSourceLib() {
new Thread(new Runnable() {
@Override
public void run() {
NativeSourceTest.load();
}
}).start();
new Thread(new Runnable() {
@Override
public void run() {
NativeSourceTest.load();
}
}).start();
new Thread(new Runnable() {
@Override
public void run() {
NativeSourceTest.load();
}
}).start();
new Thread(new Runnable() {
@Override
public void run() {
NativeSourceTest.load();
}
}).start();
for (int i = 0; i < 10; i++) {
new Thread(new Runnable() {
@Override
public void run() {
NativeSourceTest.load();
}
}).start();
}
NativeSourceTest.load();
}

Expand Down

0 comments on commit 4f31551

Please sign in to comment.