Skip to content

Commit b056b78

Browse files
author
josemari
committed
updates
1 parent a2ea1b4 commit b056b78

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

BookChaptersCode/data.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
1
2+
John
3+
Rambo
4+
2
5+
John
6+
Wick
7+
3
8+
John
9+
McClane
10+
4
11+
John
12+
Connor
13+

BookChaptersCode/file.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<company>
3+
<staff>
4+
<firstname>John</firstname>
5+
<lastname>Rambo</lastname>
6+
<email>john.rambo@gov.us</email>
7+
<salary>100000</salary>
8+
</staff>
9+
<staff>
10+
<firstname>John</firstname>
11+
<lastname>Connor</lastname>
12+
<email>john.connor@genesis.com</email>
13+
<salary>200000</salary>
14+
</staff>
15+
</company>

BookChaptersCode/src/main/java/org/jomaveger/examples/chapter8/producer_consumer/ProducerConsumerSimulator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) {
2222

2323
BlockingQueue<File> queue = new ArrayBlockingQueue<>(25);
2424

25-
File root = new File("C:\\Java\\JSE8.201x64\\src");
25+
File root = new File(System.getProperty("java.home") + "/src");
2626

2727
for (int i = 0; i < N_PRODUCERS - 1; i++) {
2828
new Thread(new FileExplorerProducer(queue, root,

0 commit comments

Comments
 (0)