I have a SerializeObject class that reads and writes objects to a file. I have a problem where if i have two threads running both trying to read from the file i get that exception. I understand the basic conflict not sure how to fix. do i run a wait on the ObjectInputStream then once i know its closed let next call to readObject read from file.
My threads knowledge is subpar i want to learn more on how to implement these thread like issues.
teach me o wise ones!
My threads knowledge is subpar i want to learn more on how to implement these thread like issues.
teach me o wise ones!