Ok. So my program is finished, or so I think.
The output on my computer is something like this:
Producer 1: aaaaaaaaaaaaaaaaaaaa
Producer 2: 00000000000000000000
Consumer : aaaaaaaaaaaaaaaaaaaa
Consumer : 00000000000000000000
Which seems fine, however when I run this code on the computers in my school lab it does this:
Producer 1: aaaaaaaaaaaaaaaaaaaa
Producer 2: 00000000000000000000(0123456789) *Items in parenthesis should not be there.*
Consumer : aaaaaaaaaaaaaaaaaaaa
Consumer : 00000000000000000000
Why is it adding that array to my producer 2? Here is the code from my producer 1, producer 2 and consumer routines:
****CODE WAS REMOVED BECAUSE PEOPLE IN MY CLASS STOLE IT******
The output on my computer is something like this:
Producer 1: aaaaaaaaaaaaaaaaaaaa
Producer 2: 00000000000000000000
Consumer : aaaaaaaaaaaaaaaaaaaa
Consumer : 00000000000000000000
Which seems fine, however when I run this code on the computers in my school lab it does this:
Producer 1: aaaaaaaaaaaaaaaaaaaa
Producer 2: 00000000000000000000(0123456789) *Items in parenthesis should not be there.*
Consumer : aaaaaaaaaaaaaaaaaaaa
Consumer : 00000000000000000000
Why is it adding that array to my producer 2? Here is the code from my producer 1, producer 2 and consumer routines:
****CODE WAS REMOVED BECAUSE PEOPLE IN MY CLASS STOLE IT******