concurrent-programming Questions

3

Solved

I am reading the book Java Concurrecny in practice. On page 85 section 5.2.1 it talks about the ConcurrentHashMap and its advantages. However, in one part, the books claims that the iterators r...
Svelte asked 29/12, 2012 at 17:22

5

Solved

I am able to sort my ConcurrentDictionary by value like so: static ConcurrentDictionary<string, Proxy> Proxies = new ConcurrentDictionary<string, Proxy>(); Proxies.OrderBy(p => p...

2

Solved

I am working on the Executors in java to concurrently run more threads at a time. I have a set of Runnable Objects and i assign it to the Exceutors.The Executor is working fine and every thing is f...
Crissycrist asked 13/10, 2009 at 18:27

2

Solved

A data structure that I use commonly in multi-threaded applications is a ConcurrentHashMap where I want to save a group of items that all share the same key. The problem occurs when installing the ...
Sungod asked 22/3, 2012 at 12:29

2

Solved

I am thinking here: If you have 2 threads executing FAST operations that need to be synchronized, isn't a nonblocking approach faster/better than a blocking/context switch approach? By non-blockin...
Obryant asked 27/2, 2012 at 17:35

5

Solved

From what I gathered on the lock free programming, it is incredibly hard to do right... and I agree. Just thinking about some problems makes my head hurt. But what I wonder is, why isn't there a ...
Donniedonnish asked 6/12, 2011 at 12:48

4

Solved

I work on a simulation system, where at each timestep, I have to simulate many models. I used a FixedThreadPool to speed up the calculation: ExecutorService executor = Executors.newFixedThreadPool...

2

Solved

I'm using asynchronous I/O because it does not block the calling thread and does the threading stuff behind the scenes. If I invoke multiple async operations like BeginWrite()'s on the same Stream,...

3

Solved

I have the following structure for TCP client-server communication: On server startup server starts acceptor thread, that accepts client connections and passes ServerSocket to it. When a client ...
Elianaelianora asked 11/4, 2011 at 15:28

1

Solved

I have been looking through the Topshelf code, and notice that it is using an assembly called 'stact.dll'. There does not seem to be a lot of information around on this. It seems to be a library fo...
Existentialism asked 30/3, 2011 at 8:12

1

Solved

while reading on concurrent programming, I came across the term Consensus Number in Compare-And-Swap & Compare-And-Set operations. I'm having trouble in understanding what is meant by this term...

2

I realized that when I am trying to process items in a concurrent queue using multiple threads while multiple threads can be putting items into it, the ideal solution would be to use the Reactive E...
Blink asked 13/6, 2010 at 0:47

6

Solved

Consider code sniper below: package sync; public class LockQuestion { private String mutable; public synchronized void setMutable(String mutable) { this.mutable = mutable; } public String ...

3

In preperation for my upcoming Concurrent Systems exam, I am trying to complete some questions from the text book "The Art of Multiprocessor Programming". One question is bugging me: Exercise 12...
Abomasum asked 29/10, 2010 at 13:22

1

Solved

Update: This looks like a memory issue. A 3.8 Gb Hprof file indicated that the JVM was dumping-its-heap when this "blocking" occurred. Our operations team saw that the site wasn't responding, took ...
Hortensehortensia asked 25/10, 2010 at 15:52

3

Solved

I attended an interview today in which the interviewer asked me the following question : Is re-entrancy and mutual exclusion thread-safe ? Can you explain why ? I am relatively new to concurrent ...
Siriasis asked 20/9, 2010 at 13:0

4

Solved

Can any of STL algorithms/container operations like std::fill, std::transform be executed in parallel if I enable OpenMP for my compiler? I am working with MSVC 2008 at the moment. Or maybe there ...
Pacer asked 30/3, 2010 at 18:16

3

Solved

Is parallel programming == multithread programming?

9

When Java is providing the capabilities for concurrent programming, what are the major advantages in using Clojure (instead of Java)?
Kolkhoz asked 15/10, 2009 at 7:30

© 2022 - 2024 — McMap. All rights reserved.