190 Topics

Member Avatar for
Member Avatar for laptop545

Hello All, I have a question regardind=g accessing shared resources. I have a for loop in which i am creating many threads.. And each thread at some point of time they call this function : [code] Public Function UpdateMailJobs(ByVal con As Data.DataRow, ByVal jobid As String, ByVal varName As String, …

Member Avatar for the_carpenter
0
169
Member Avatar for memorex

I need to make a project that takes data from a uC through serial port and insert it in some databases. I want to take the data from 5 sensors, i'm sending the data from al 5 sensors once per hour. The problem is that I want to use backgroundworker …

0
92
Member Avatar for Tarkenfire

Okay, so in all honesty, I began learning Python about 2 days ago, so this is a rather noobish question(well, I've programmed in other languages, so it's not THAT noobish), but I'm making an IRC bot and can't figure out how to make it so that a line of code …

Member Avatar for Tarkenfire
0
213
Member Avatar for swinefish

Hello all I'm having a major problem with instantiating objects across threads in WPF. For example, if I have the following: [icode]Line l = new Line[/icode] I get the following error: 'InvalidOperationException: The calling thread must be STA, because many UI components require this.' While I understand that in general, …

0
97
Member Avatar for Kami3
Member Avatar for chan_lemo
0
263
Member Avatar for maxish

Hi, I have C# .net application which reads data from the serial port and launches a new thread to process the data when all data has been read (end of data is determined by timing constraints). I create a new object where the thread will run, copy the data that …

Member Avatar for PierlucSS
0
169
Member Avatar for Talguy

I have two questions one is kind of a newbie question and the other one is a little more advanced. I have been coding C++ off and on for the past couple of years as a hobby and a little for my EE classes. I usually in my class reference …

Member Avatar for Aranarth
0
114
Member Avatar for ktsangop

Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python …

Member Avatar for ktsangop
0
373
Member Avatar for vs.vaidyanathan

If i fork off a parent and want to fork of fthe child, can i pass new variables from the child to the "grand -child"? PL help me clear this concept.

0
94
Member Avatar for vs.vaidyanathan

I wasnt to fork from a parent and execute two perl codes simultaneously rot13.pl and pi.pl.I want to keep track of the pid's of both children. i am not aware how to do it within the system() cmd. I have written the code below. But something tells me I'm being …

0
91
Member Avatar for tdhprestatyn

I am running a BackgroundWorker to make a call to a Web Service to obtain a list of Customers, and a list of Vat Rates. This is fine and works, but I am simply stuck passing this data through to RunWorkerCompleted so the form can be updated (these two sets …

Member Avatar for orthimnas
0
420
Member Avatar for Swence32

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the …

Member Avatar for Swence32
0
257
Member Avatar for P00dle

Ok, so I wrote a very simple programme, just to practice multithreading. I know it can be coded better, but I'm still learning about this, so please be lenient. This is my code so far: [CODE]package threads; // Create a thread import java.io.File; class threads implements Runnable { // This …

Member Avatar for P00dle
0
138
Member Avatar for d.devendran

hi expert, i'm newbie for python, anywhere i'm learning from internet sample, i got doubt here, i found below sample for thread import threading def hello(): print "Hello" t = threading.Timer(2, hello).start() t = threading.Timer(2, hello) t.start() this working fine when run manually ( python thread.py) but i try to …

Member Avatar for jcao219
0
158
Member Avatar for pymatio

Hi everybody, I'm trying to make a program that goes through a directory and checks for broken links. Unfortunately it isn't working: [CODE] // Main.cs using System; using System.Collections.Generic; using Gtk; namespace LinkMonkey { class MainClass { public static void Main (string[] args) { bool cli = true; bool recursive …

0
53
Member Avatar for Sonali_86

Hi, I had a query whether Windows multithreading API throw any Synchronization exception. If I am sharing a STL string between threads and the string is not guarded,will there be any synchronization exception. Another query is does STL container throw exceptions apart from memory violation Thanks in advance :-)

Member Avatar for madhav_75
0
112
Member Avatar for ProjectEchelon

Hello All... This is my first post so please be gentle with me and I will try to explain the issue I've been fighting with for 3 days. I am trying to update a gridview element from a different thread. This update task is part of an outer foreach loop …

Member Avatar for ProjectEchelon
0
779
Member Avatar for xx_infer

hi, i have problems using exec(), I need to pass a set of numbers using exec to another program that is supposed to use them to calculate something,,, i dont know how to pass them any suggestions??

Member Avatar for Salem
0
103
Member Avatar for anjal_pawar

Write a program to print * / * / * / * / * / * / * / using two child thread. One thread responsible for printing * and another for /

Member Avatar for MaraShyla
0
166
Member Avatar for nitin2010

I have a static function that write to a log file . In my project I am already using multithreading , hense I m getting exception that 'process can't access file because it is being used by another process ' I want to mutex that code so that if one …

Member Avatar for powerbox
0
140
Member Avatar for nitin2010

In my program ,am using ThreadPool for threading. In which function creating progressbar is in one thread and function that changing visibility of progressbar is in another thread. then following exception occurring... [COLOR="Red"]Controls created on one thread cannot be parented to a control on a different thread[/COLOR]

0
66
Member Avatar for Unitaren

Hello, This is my first post to the community. I have never really been one to ask of much help but I am stumped. I was asked to asked to write a word count program that received input from a scanner object. The input could consist of one or more …

Member Avatar for Unitaren
0
5K
Member Avatar for tajendra

If i have process P1 which contain two thread T1 and T2, then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core. Which will give more performance ? If we assume C1 thread can consume …

Member Avatar for Banfa
0
168
Member Avatar for Krytikal

Alright... so I found numerous examples on the proper way to suspend and pause threads but none really relate to my problem. I have a thread which runs in the background of my game which does all the simulation of moving players, calculating spaces and ect... I have a pause …

Member Avatar for Diamonddrake
0
567
Member Avatar for dshiells

Basically I am trying to learn multithreading in C++. Platform: Windows XP. So far so good but I want to make sure I'm using mutex correctly. It compiles and runs as expected, but just wanted to make sure I use the CreateMutex() function in the correct place. Thanks! Here's my …

Member Avatar for thelamb
0
1K
Member Avatar for Diamonddrake

I am working on a really fun project. I have written much of a program that lets you use a RockBand or GuitarHero drum kit to play drum sounds on your PC, record, playback, ect. I have decided conclusively as I add features I need more than just a gui …

Member Avatar for Diamonddrake
1
131
Member Avatar for lee.j.baxter

Hi everyone, I'm using WPF to make a nice UI for a completely automated system (to the point where there are no interactive controls what-so-ever) that downloads media from the net and learns from it. I've got a class that I've created which acts as an entry point to the …

Member Avatar for Geekitygeek
0
578
Member Avatar for JamesGeddes

Hi Everyone, I'm making a windows mobile app in C# that aims to help those affected by Alzheimer's Disease Part of it needs to send text messages at 5 minute intervals, however, the rest of the C# program needs to continue at the same time. I know that when you …

Member Avatar for Cory_Brown
0
129
Member Avatar for Jay.Perez

Hi All, My knowledge of databases and Access is almost zero but none the less I have to try and solve a problem with a small home-grown Access database and hoping someone can help. I've done many searches and can't locate what I thought would be an easy answer. There …

0
129
Member Avatar for PMACLEAN

Could someone please advise me on how to implement fork() in a parallel processing (multiplying) of a 2d array....I have been at this for far too long.. here is my code [code] for (int i = 0; i < rowCol[0]; i++ ) result[i] = (float*)malloc ( rowCol[1] * sizeof(float) ); …

Member Avatar for abhimanipal
0
178

The End.