Problem I thought it would be helpful to put together an example of what I’m talking about in the second […]
Tag: synchronization
Synchronization of an ODBC connection
Problem Since I’m venturing more and more into the multithreading, I now need to think about how to protect my […]
Synchronization of new data with previous data
Problem I am working with synchronization for the first time. I wrote some code that I have to implement in […]
Synchronization of new data with previous data
Problem I am working with synchronization for the first time. I wrote some code that I have to implement in […]
Webservice methods using EclipseLink and database entities
Problem I am wondering if this is a good and correct way to write the implementation of two web service […]
Handling messages from a server
Problem I’ve never really done anything with concurrency, so I’m not sure if this is done correctly. Basically, I have […]
Waiting for game server connection
Problem public boolean connectedOnGameServer = false; public final Object conGameServerMonitor = new Object(); public void connectedToGameServer() { synchronized (conGameServerMonitor) { […]
Java synchronization task
Problem I have the following task: Implement a simple command line Java application for booking bus seats. For simplicity suppose […]
Java Non Reentrant Lock Implementation
Problem I have implemented a Non Reentrant Lock. I want to know if this has any mistakes, race conditions etc. […]
Spurious wakeups in Java’s BlockingQueue.take()
Problem I wrote this code where I trap InterruptedException‘s in a blocking queue and try again to consume from the […]