Helen Ma wrote:If I don't understand thread topics much, I cannot handle the OCJP or even pass the Operating System class in my computer science class.
Helen Ma wrote:I think the following code is equivalent:
Helen Ma wrote:I have been doing something similar. I found out that the file pointer cannot move fast enough to the correct location in file when the CPU switches from one thread to another as concurrent reading is being executed. It ends up reading wrong data.
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton