Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [concurrency]

In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods. The computations may be executing on multiple cores in the same chip, preemptively time-shared threads on the same processor, or executed on physically separated processors.

4 votes
3 answers
3k views

WaitForMultipleObjects in Java

What would be the most elegant way to implement a Win32 equivalent of WaitForMultipleObjects in Java (v6). A thread is sleeping until one of several events occur. When that happens, I want to process ...
Dima's user avatar
  • 4,098
1 vote
2 answers
186 views

Time restricted service

i'm developing an app that make requests to the Musicbrainz webservice. I read in the musicbrainz manual to not make more than one request per second to the webservice or the client IP will be blocked....
Marcio Aguiar's user avatar
4 votes
2 answers
980 views

Die you threadpoolexecutor

I have a java.util.concurrent.Execution service - a single threaded thread pool executor. I submit certain tasks to it. If the task throws an unchecked exception the thread dies but the service ...
baskin's user avatar
  • 1,643
6 votes
5 answers
726 views

Inter-Image communication in Smalltalk. Possible?

I have a graph-traversal problem that is beautifully and elegantly modeled in smalltalk, but it's too big (in terms of computation and storage) for one smalltalk image instance. So, I want to ...
Alex's user avatar
  • 4,356
1 vote
4 answers
1k views

Is it safe to use writeLock without readlock?

Assuming this is a "singleton" implementation: Am I guaranteed that this will only call productCatalogLoader.load() once, and also that no nullpointers can happen ? Any way to make this simpler ? ...
krosenvold's user avatar
  • 76.5k
1 vote
3 answers
9k views

NHibernate and sql timestamp columns as version

I've been racking my head trying to get Nhibernate to work with a byte array as version mapping to an sql timestamp. I'd implemented an IUserVersionType but Nhibernate was creating varbinary in the ...
Jimit's user avatar
  • 765
120 votes
10 answers
110k views

What is mutex and semaphore in Java ? What is the main difference?

What is mutex and semaphore in Java ? What is the main difference ?
Isabel Jinson's user avatar
4 votes
5 answers
2k views

What Java Data Structure/Solution would best fit these requirements?

I need a java data structure/solution that meets these requirements. What best fits these? 1) Object's insertion order must be kept 2) Object's must be unique (These are database objects that are ...
mainstringargs's user avatar
0 votes
2 answers
1k views

Limit the number of concurrent connections from the server side?

I'm writing my own webserver and I don't yet handle concurrent connections properly. I get massive page loading lag due to inappropriately handling concurrent connections (I respond to SYN, but I ...
Jeff Lamb's user avatar
  • 5,805
2 votes
2 answers
4k views

java.util.ConcurrentModificationException in JasperReports

We have a web application deployed to Websphere 6.1.0.19 on Windows. We occasionally see this ConcurrentModificationException on a few of our reports. We are using JasperReports 2.0.5 in production. ...
user avatar
9 votes
3 answers
4k views

What's the upcoming Java concurrency library: jsr166y? jsr166z?

I wanted to play around with the upcoming concurrency library which is going to be included in Java 7 according to this website. It seems to be named JSR166. In most places its reference ...
ivan_ivanovich_ivanoff's user avatar
17 votes
7 answers
6k views

Does lock(){} lock a resource, or does it lock a piece of code?

I'm still confused... When we write some thing like this: Object o = new Object(); var resource = new Dictionary<int , SomeclassReference>(); ...and have two blocks of code that lock o while ...
Prerak K's user avatar
  • 11.1k
53 votes
3 answers
15k views

Concurrency in a GIT repo on a network shared folder

I want to have a bare git repository stored on a (windows) network share. I use linux, and have the said network share mounted with CIFS. My coleague uses windows xp, and has the network share ...
Alex's user avatar
  • 707
10 votes
4 answers
6k views

Understanding Goetz's article on Thread safety of HttpSession

Referring to Brian Goetz's article Are all stateful Web applications broken? for IBM developerWorks, I want to refer to this piece of code HttpSession session = request.getSession(true); ShoppingCart ...
Jacques René Mesrine's user avatar
2 votes
2 answers
677 views

Can anyone recommend a concurrent, real-time diagramming/flowchart collaboration tool? [closed]

I'm looking to work with others to quickly build a rather large class flow diagram that may or may not be strict UML. Can anyone recommend a networked, concurrent collaboration tool for such a task? ...
Stefan Kendall's user avatar

15 30 50 per page