Hi
I am trying to compare the performance of Single and Multithreaded Java programs. Are there any single thread benchmarks which are available which I could then use and convert to their multithreaded version and compare the performance. Could anybody guide me as to what kind of programs(not very small) are suitable for this empirical c...
I am raising an event from managed C++ which is handled by a C# app.
Is the C# event handler executed on the same thread it was raised from C++ ??
In other words, Is raising event blocking for C++ until it is completely handled by C#?
...
Hi,
I am try to do multi-threading in Objective C.
What I want to do now is that,
for some instance of objects,
I want to have to way to call some function 5 seconds later.
How can I do that?
In Coco 2D, it's very easy to do it. They have something called scheduler.
In Objective C, how to do it please?
Thanks
...
I've just been messing around with threads in Java to get my head around them (it seems like the best way to do so) and now understand what's going on with synchronize, wait() and notify().
I'm curious about whether there's a way to wait() on two resources at once. I think the following won't quite do what I'm thinking of (edit: note th...
So I've noticed that the default stack size for threads on linux is 8MB (if I'm wrong, PLEASE correct me), and, incidentally, 1MB on Windows. This is quite bad for my application, as on a 4-core processor that means 64 MB is space is used JUST for threads! The worst part is, I'm never using more than 100kb of stack per thread (I abuse th...
Greetings all,
Please refer to image at :
http://i48.tinypic.com/316qb78.jpg
We are developing an application to extract cell edges from MRC images from electron microscope.
MRC file format stores volumetric pixel data (http://en.wikipedia.org/wiki/Voxel) and we simply use 3D char array(char***) to load and store data (gray scale valu...
i have five forms in my c# project. one host an httplistener that i want to run continionsly. when the listener gets a message, it passes it to a static class, which in turn calls the appropriate forms for another processing.
is it possible that the static class calls the new form in a new thread? if so please help me out
...
Hi, I would like to send email notifications to users of my project exactly at 8 a.m,
Here we are using a thread to send emails to the user. I would like to send some emails exactly at 8 A.M. How can I execute that perticular logic in this Thread. Please help me.
...
Possible Duplicate:
How can one use multi threading in php applications
Any body knows PHP5 supports multi threading or not. If it support how to implement that?
...
Hi,
I'm working on some application and using ThreadPoolExecutor for handling various tasks. ThreadPoolExecutor is getting stuck after some duration. To simulate this in a simpler environment, I've written a simple code where I'm able to simulate the issue.
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Rej...
Hi All,
I'm using .Net 4.0 parallel library. The tasks I execute, ask to run some other task, sometimes synchronously and sometimes asynchronously, depending on some conditions which are not known in advanced. For async call, i simply create new tasks and that's it. I don't know how to handly sync call: how to run it from the same threa...
Hi,
I am writing a sample which uses thread to do some background processing.
In the thread I am trying to emitting a signal. But it is not coming to slot.
While connecting I checked the value of “connect()” function value , it is returning value as true.
One thing to notice is in the run method I am not using “exec() “ .
Please hel...
While making a WCF Web Service, I came across a problem while using a method with a webbrowser control. The method starts a thread and uses a webbrowser control to fill in some forms and click further, waiting for a event handler to fire and return a answer I need. The method is tested and works within its own enviroment, but used in a W...
I searched google as much as I could but I couldn't find any good answers to this.
localtime_r is supposed to be a thread-safe function for getting the system time. However, when checking my application with Valgrind --tool=drd, it consistantly tells me that there is a data race condition on this function. Are the common search results ...
I am working on a mobile platform over Nucleus RTOS. It uses Nucleus Threading system but it doesn't have support for explicit thread local storage i.e, TlsAlloc, TlsSetValue, TlsGetValue, TlsFree APIs. The platform doesn't have user space pthreads as well.
I found that __thread storage modifier is present in most of the C++ compilers. ...
I get a question and do not know where to find a correct answer.
The hypothetical problem is next:
there is 2 unrelated eclipse plugin A and B.
A and B were developed by 2 independent developers.
Let plugin A call some internal eclipse code.
is it possible that we get in some function in B with the same thread.
i.e. the stack trace will ...
I have a programming that is drawing realtime animations to a gtkmm window. I have my main thread gui thread and a worker threa that renders a frame of the animation to a image surface using cairo. The worker thread has is signaled by the main thread every 33mS. Right now I have my app creating a new rendering thread on every timeout ...
Hi,
I kind of new to the hole threading stuff so bare with me here..
I have a aspx-page that takes some input and makes a reqest:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(string.Format("{0}?{1}", strPostPath, strPostData));
request.Method = "GET";
request.Timeout = 5000; // set 5 sec. timeout
request.ProtocolVe...
Possible Duplicate:
Do I need to use locking with integers in c++ threads
Do critical sections inside trivial int accessors actually do anything useful?
int GetFoo()
{
CriticalSection(crit_id);
return foo;
}
void SetFoo(int value)
{
CriticalSection(crit_id);
foo = value;
}
Is it possible for two threads to be a...
Hello!
Currently I'm reading some documentation written by another and I'm confused. A lot of it is about the multi-threading synchronization that has been implemented in the project for which this documentation is written.
In this project this programmer implemented a few classes that control the critical sections that are being used...