Hi,
I've got this code below, where I spawn several threads, normally about 7, and join them to wait until all are done:
List<Thread> threads = new List<Thread>();
Thread thread;
foreach (int size in _parameterCombinations.Keys)
{
thread = new Thread(new ParameterizedThre...
What is the relationship between a CUDA core, a streaming multiprocessor and the CUDA model of blocks and threads?
What gets mapped to what and what is parallelized and how? and what is more efficient, maximize the number of blocks or the number of threads?
Thanks,
ExtremeCoder
My current understanding is that there are 8 cuda core...
Hi, While running a JEE application on a 32 bit jvm on Solaris x86 I get an OutOfMemoryError:Cant create native thread (or something like that).
This is because the jvm does not have enough memory for the stack of the new thread as far as I understand it.
I use both JConsole and VisualVM 1.3 to monitor the application but I do not know ...
hi! everybody
i have a c problem can any one help me . i wrote a code of process creation in c language , it uses pid & fork() call. the fork call is use for making child process now can any body tell me how to make parent process? i know that creating a child in process make the process parent automatically but i want to make a parent ...
The following code is supposed to make 100,000 threads:
/* compile with: gcc -lpthread -o thread-limit thread-limit.c */
/* originally from: http://www.volano.com/linuxnotes.html */
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#define MAX_THREADS 100000
int i;
void run(void) {
...
Hi all! :-)
I'm writing a small updater for my app.
My flow would be like this:
app.exe -> call process(updater.exe) -> app.close()
Then, updater check if app is closed, then overwrites app.exe and other satellite assemblies.
So I need to do something like this: launch my C# exe app, fire a process for updater.exe, then close app, but ...
Hello,
I have a "core" application that is adapter to process task. Each task is implemented in an adapter load by the core to process the task.
My question is, is it possible to have different classpath in each adapter to precent class/jar conflict between adapters.
Regards,
...
I see there are a lot of questions regarding threads modifying items in a form;
however, I just wanna read the state of a checkbox (for example) from a thread. So...
Is there any additional overhead to access the "Checked" state of a checkbox in a form (from a thread) -vs- creation of an bool that will reflect the state of that checkbo...
Is there a standard terminology that distinguishes between objects that are safe to use in a multi-threaded environment with locking (my object has no unprotected static members) and objects that are safe to use concurrently in a MT environment (maybe because I put locks around all the public methods)?
Let me add a little more explanati...
Hi All,
I have a multi-threaded application build in C# using VS2010 Professional. It's quite a large application and we've experienced the classing GUI cross-threading and deadlock issues before, but in the past month we've noticed the appears to lock up when left idle for around 20-30 minutes.
The application is irresponsive and alth...
Hi,
I am writing an application similar to a chat server-client pair.
I am planning on having a central Object which will hold new messages received from clients until they are dealt with by the main thread.
My application is multi-threaded. Each client will be on its own thread, so multiple threads will be adding messages to this cen...
I try to add a row to a listView
listView1.Items.AddRange(new ListViewItem[] { item1 });
from a different thread to the one in which it was created and it throws an Exception.
Can anyone help me understand how to do this correctly?
...
Possible Duplicate:
Are C# auto-implemented static properties thread-safe?
In the following example class
static class Shared
{
public static string[] Values { get; set; }
}
many reader threads read the Values string array periodically, while from time to time a single writer will replace the whole array with a new valu...
I am writing an app that consumes an OData feed and I am creating my proxy which inherits from ObjectContext in a NSThread. The first time a call is made with any execute on the proxy itself or on a query object, the debugger is fine. The subsequent calls fail and it looks like the debugger freaks out. Does any one have any idea of why t...
hi folks
I recently started on a new job and there is a windows service here that consumes messages from a private windows queue. This service consumes the messages only from 9am to 6pm. So, during 7pm to 8:59am it accumulates a lot of messages on the queue. When it starts processing at 9pm, the cpu usage of the service goes to high(98,...
I am writing a python program that seems to be leaking memory.
The program takes in a list of URL's and makes sure their status code is 200. If the status code is not 200, then the script will alert me via email. The script threaded so the URL's can be checked in parallel of each other.
I have set the program on a one of our server...
I have a client/server question that i am trying to figure out the best solution for.
If a client ever gets disconnected from the server, for any reason, i would like a way for the input output thread to alert the gui thread that something went wrong, and thus have the gui thread print an error and gracefully handle it (probably drop ba...
Hi,
I am creating my first app its a little server. I just wanted to know whats the best way to accept multiple connections but not be flooded, say 10 connections in 10 secounds then if flooded close the listener. Would threads or thread pool help me do this.
I added the Threadpool but not sure on how i should be using it for my applic...
I was trying to create an example for deadlock. I tried the following code. But instead of creating deadlock, it worked like charm. Help me in understanding why it didn't create a deadlock. What change in this code would create a deadlock?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System...
I came across this code in a large codebase
DWORD WINAPI ThreadFunc (LPVOID lpParam)
{
int *x = 0;
*x = 1234; // Access violation
return 0;
}
void Manager::Crash ()
{
Log("Received a remote command to crash Server.");
DWORD dwThreadId, dwThrdParam = 1;
HANDLE hThread = ::CreateThread(NULL, 0, ThreadFunc, &d...