Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Nedelcu committed Nov 21, 2013
1 parent 839278d commit 3ed0d9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.math.BigDecimal;

public class Atomicity {
public class Main {
public static Thread createActor(final BankAccount account, final BigDecimal withdrawAmount) {
Thread th = new Thread(new Runnable() {
public void run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.Random;

public class ThreadLocals {
public class ThreadLocalsMain {

static Random rnd = new Random();
static synchronized int generateRandom() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

public class ThreadingPools {
public class ThreadingPoolsMain {
public static void main(String[] args) throws InterruptedException {
ForkJoinPool pool = new ForkJoinPool();
final AtomicInteger ref = new AtomicInteger(0);
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/example8/DeadlockMain.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package example8;

public class DeadlockMain {
public static void main(String[] args) {
// TODO
}
}

0 comments on commit 3ed0d9c

Please sign in to comment.