added ex E

This commit is contained in:
2024-12-10 13:25:48 +01:00
parent 790c1ffea0
commit 1e8e6eb1e9
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package exercicses.ex_e;
public class TestingThreadInterferences {
public static void main(String[] args) {
// shared account object
Account account = new Account();
(new Thread(new Customer("Damien", account))).start();
(new Thread(new Customer("Hélène", account))).start();
}
}