Multi-threading related questions including technique, structure, and safety issues.
3
votes
0answers
104 views
Best Creational Pattern for loggers in a multi-threaded system?
This is a follow up question on my past questions :
Concurrency pattern of logger in multithreaded application
As suggested by others, I am putting this question separately.
As the learning from ...
-2
votes
0answers
19 views
why client can not receive message from server (java) [migrated]
I have just started learning java. I modified the client side code for a server/client communication program, by creating two threads for the client side, main thread for receiving user's input, and ...
4
votes
2answers
163 views
Concurrency pattern of logger in multithreaded application
The context:
We are working on a multi-threaded (Linux-C) application that follows a pipeline model.
Each module has a private thread and encapsulated objects which do processing of data; and each ...
3
votes
4answers
221 views
Multithreading synchronization interview question: Find n words given m threads
I came across this question:
You are given a paragraph , which contain n number of words, you are
given m threads. What you need to do is , each thread should print one
word and give the ...
3
votes
3answers
86 views
Naming Convention for Dedicated Thread Locking objects
A relatively minor question, but I haven't been able to find official documentation or even blog opinion/discussions on it.
Simply put: when I have a private object whose sole purpose is to serve for ...
2
votes
3answers
87 views
Internal Mutation of Persistent Data Structures
To clarify, when I mean use the terms persistent and immutable on a data structure, I mean that:
The state of the data structure remains unchanged for its lifetime. It always holds the same data, ...
2
votes
1answer
78 views
What is the best way to diagrammatically represent a system threading architecture?
I am yet to find the perfect way to diagrammatically represent the overall threading architecture for a system (using UML or otherwise).
I am after a diagramming technique that would show all the ...
1
vote
1answer
144 views
Thread safe GUI programming
I have been programming Java with swing for a couple of years now, and always accepted that GUI interactions had to happen on the Event Dispatch Thread. I recently started to use GTK+ for C ...
1
vote
4answers
209 views
.NET mulithreading and quad core processors
I have a single threaded application that runs on a machine with a quad core processor. The scheduled tasks that run VB.NET forms are too slow.
I am new to multi threading and parallel computing. ...
1
vote
1answer
50 views
Confusion related to sigwait in multiprocess system
I am having difficulty in understanding IPC in multiprocess system. I have this system where there are three child processes that send two types of signals to their process group. There are four types ...
3
votes
3answers
245 views
Is the singleton pattern prone to thread safety problems?
Is the singleton pattern prone to thread safety problems? If so, what are the best methods to work around them?
1
vote
3answers
337 views
When creating a library for a simple program, what must I do to protect others from its lack of thread safety?
When creating a library for a simple program, is it more cost effective to make it thread safe or is there a way to detect the program's use in a multithreaded program and ASSERT() or otherwise ...
4
votes
0answers
183 views
Reading and conditionally updating N rows, where N > 100,000 for DNA Sequence processing
I have a proof of concept application that uses Azure tables to associate DNA sequences to "something".
Table 1 is the master table. It uniquely lists every DNA sequence. The PK is a load balanced ...
2
votes
1answer
115 views
Parallel Threading in Multi-Language Software?
I'm developing a software that contain many modules/Daemon running in parallel manner, what i'm looking for is how to implement that, i cannot use Thread because some of those modules/Daemon are ...
4
votes
4answers
308 views
What is a zombie process or thread?
What is a zombie process or thread, and what creates them? Do I just kill them, or can I do something to get diagnostics about how they died?