Multithreading is how work performed by a computer can be divided into multiple concurrent streams of execution (generally referred to as threads).
0
votes
0answers
4 views
Multi Threading with LINQ to SQL
I just want to say thanks ahead of time for any help. It is greatly appreciated.
I am writing a WinForms application. I am pulling data from my database, performing some actions on that data set and ...
1
vote
1answer
28 views
NetServerEnum block when thread is terminated externaly
(Working in Win32 api , in C environment with VS2010)
I have a two thread app. The first thread forks the second and waits for a given interval - 'TIMEOUT', and then calls TerminateThread() on it.
...
0
votes
1answer
15 views
make a copy of dead thread
I have a class that subclasses threading.thread. In the daemon that initialises the thread objects i periodically check the thread status. If the status is incomplete and the thread is not alive this ...
0
votes
0answers
40 views
Trouble using java sockets, order matters?
So I have a server that connects to 2 clients (call them c1 and c2). I want c1 to only be able to write to the server, and c2 should be able to read and write from server. Obviously c1 and c2 should ...
1
vote
1answer
55 views
Hashmap stuck on get
I have a strange issue with HashMap.
There are multiple threads that accessing same hashmap (not threadsafe).
Sometime, the process gets stuck.
when I inspect the thread stack, i see many threads ...
2
votes
2answers
36 views
asynchronous UI update from ViewModel in WPF
I am having a problem with getting data from db and showing in UI asynchronously.
I am using MVVM light, when I click the button, action is triggered in ViewModel:
private void SearchQuery(string ...
1
vote
1answer
24 views
Three types of threads attempting to access critical section
For my application I need to be sure, that in critical session only one type of thread is processing. Number of threads for given type is not specified and could be "large". I've came with simple ...
1
vote
1answer
30 views
Safe Call From a thread
I have my main form, where I can call a NuevoPago which is a form and this new form has these Global vars:
Public Class NuevoPago
Dim Usuario As Usuario = Main.ListView1.SelectedItems(0).Tag
But ...
0
votes
2answers
36 views
Are the signal-slot execution in Qt parallelized?
I have a basic Qt question on the way it handles Signals and Slots. I am very new to the framework, so pardon me if it sounds stupid. I was wondering if I have certain signals connected to certain ...
1
vote
1answer
23 views
Why does my multithreaded insert perform better than a single threaded insert?
I looked into concurrency in MongoDB, and apparently it uses a database level locking system. I thought that would mean that multiple threads inserting into the same database would perform similarly ...
0
votes
0answers
29 views
Unity migration to 4.x with Sphero
I recently migrated a Sphero project from Unity 3.5 to Unity 4.1. It stopped working. And I found the solution so I thought I would share and save you guys the trouble.
It turns out that when I ...
-1
votes
2answers
37 views
What does Thread refer to, in method calls to Thread.currentThread(); and Thread.sleep();?
I read the code below in a Java book. I understand that main class by default inherits Thread class so, currentThread(); instead of Thread.currentThread(); will also do the job.
But what I don't get ...
4
votes
4answers
4k views
Runnable is posted successfully but not run
In an existing Android project I've encountered the following piece of code (where I inserted the debugging litter)
ImageView img = null;
public void onCreate(...) {
img = ...
6
votes
2answers
2k views
C++0x: thread, gcc or my error?
Is it GCC 4.7.0 or is it me? What do I do wrong?
This throws an std::system_error "operation not permitted" exception:
struct DumbFib {
size_t operator()(size_t n) { return fib(n); }
static ...
0
votes
1answer
102 views
when I raise event it is always null
I my event is in my userControl viewModel:
private event ValueTypeChangedEventHandler _valueTypeChangedEvent;
public event ValueTypeChangedEventHandler ValueTypeChangedEvent
{
add
...