357 Topics
![]() | |
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 … | |
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 … | |
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 … | |
I am try to form a multi thread in my program but its giving this error "\Java1.java:87: cannot find symbol symbol : class mythread2 location: class Multithreading Thread mythread1; mythread2 ^ \Java.java:88: mythread1 is already defined in Multithreading(java.lang.String) mythread1 = new Thread(this); ^ \Java.java:89: cannot find symbol symbol : variable … | |
Hey guys, Is it possible to have Thread X do more than one thing half way through executing another task? I'm trying to learn more about threading, I understand multithreading and wait and resume but I was more after knowledge about whether I can use 1 thread to mimic the … | |
Hello everyone, i 'built' a simple windows forms application, with 2 buttons and 1 picturebox. One button is used for invoking an open file dialog, which prompts for a BMP from the harddisk, which is inserted on the picturebox. The other button should do 'stuff' to the image, in a … | |
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 … | |
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 … | |
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 … | |
Hi there, All i want to do is read the jokes from a text file (using Scanner) and then write them out to three different files with three different extensions (fileName1.obj, fileName2.dat, fileName3.txt), that's part A. Part B, Create a class called FileWatcher. • This class can be given several … | |
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 … | |
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 … | |
[code] package assignment; import java.io.*; public class AddJava{ public static void main() { int num1,num2,sum; BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); try { System.out.println("enter first digit"); num1=Integer.parseInt(stdin.readLine()); System.out.println("enter second digit"); num2=Integer.parseInt(stdin.readLine()); sum=num1+num2; System.out.println(sum); } catch(IOException e) { System.out.println("input error"+e); } } } [/code] [code] package assignment; import javax.tools.*; import java.io.*; import java.lang.reflect.Method; … | |
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) ); … | |
Hi folks, I'm developing an AI system in C# that will pull out information from the internet in various forms and learn from it. The system will consist of a multitude of agents that interact with a very large central database of knowledge. At the moment I'm at the prototyping … | |
I can write a procedural application fine with graphics just fine. I have a new project where I am finally going to learn how to code with concurrency in mind. So I want to make an alarm clock that can have repeating alarms and selectable alarm tunes through itunes or … | |
So I've got this program I made, and I wanted to speed it up, using multithreading, to make use of my quad core. The program itself fully supports multithreading. The problem is, that when I'm running the program, using just one; CreateThread() it finishes in 6seconds, if I run 2 … | |
I need help with running two function at the same time . MultiThreading? [CODE]void Function1(int n) { while(n<10) { n++; } } [/CODE] [CODE]void Function2(int n) { while(n<20) { n++; } }[/CODE] If these are the 2 functions,can someone tell me how I can start the 2 together [B][U]from int … | |
what i did was i use a select statement in opening multiple IE just for testing but the main function is what you put number on a textbox then the number the IE's will open for example i put 100 on textbox then when i click a button then 100 … | |
Hi, I am loading some pictures from a traffic cam website and displaying them in picture boxes but the form freezes because its working too much. Is there any way to speed up the process, here is my code. [code] string[] picURL = new string[9]; picURL[0] = "http://www.nzta.govt.nz/traffic/current-conditions/webcams/webcam-images/cst1.jpg?rnd=0.0822959104552865"; picURL[1] = … | |
I want to launch a new process from a given string of input (including parameter). I tried to use system() but it appears that in the child process, getppid() is not the same as the caller in some runs (probably because system uses the shell as command interpreter). However, if … | |
Hi to everyone, i am wondering which language (java or c#) can create more robust and scalable application including stuffs such as multiprocessing, multithreading, and of course speed???? Thanks, in advance!!! | |
With the [url=http://www.daniweb.com/news/story251088.html]release yesterday[/url] of Intel's Core series of high-performance, power-efficient processors, makers of space-constrained, mobile and other embedded devices now have a new low-cost option for their designs. The multi-core CPUs, dubbed Core i3, Core i5 and Core i7, incorporate Intel's Hyper Threading technology for fast program execution, a … | |
Hi, I am trying to do meet these 2 requirements: 1. create a global file containing global variables that can be accessed from multiple places. Need this for multithreading. something like global.c/h to contain global data in particular the mutexes. 2. some list modules that is required from different other … | |
Hi, I'm learning Java/Jsp. I just started a project to learn and have some Practical knowledge. But I'm stuck and confused Kindly suggest me so that I can proceed further.- The Project is a Knowledge System. It stores Lots of Questions their answers which is listed by Categories. There's 2 … | |
I don't know if anybody here programs in C++ for the AS/400, specifically the Personal Communicator (PCOMM)... I have been able to successfully write programs in Visual Basic for Applications with Excel but I am having a hard time with C++. When I try to compile one of the sample … | |
Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor thread increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor thread decrements value of cnt2 by 1 each time. - … | |
Hello, I have a command line program which opens other programs. I want to make it multi-threaded so multiple programs can be opened at one time. Following is my code with using thread. I tried to incorporate threads using this online tutorial, but it did not help. [[url]http://www.computersciencelab.com/MultithreadingTut1.htm][/url] [code] #include … | |
Hi all, I'm helping my girl out with her hw, (/me not knowing C at all, but someone has to help, right?) I am supposed to read user input, and then try to execute a given command plus the arguments in every given $PATH. I managed it all, but I … | |
Hi there! I new learner in Python. And just couldn't get threading. I wrote this script. [CODE] import sys import MySQLdb if len(sys.argv)!=3: """the program name, mac and ip makes three""" """stop program and send error""" sys.exit("Must provide mac and ip!") mac = sys.argv[1] ip = sys.argv[2] print 'Connected to … | |
hello, my problem is: i have a function that i pass a pointer to so that it can update a variable for me. when this function is called normally the variable updates and everything works fine. BUT when i call this function *as a seperate thread*, and pass it the … | |
Hi all, I'm looking for a function that releases the CPU for the current executing thread. What I'm doing is implementing a multi-threaded approach to sum table calculations, and using OpenMP for multithreading. Here's the problem: I have a thread that depends on a number of other threads to finish … | |
In the context of multithreading. Tks | |
I wanted to know how can I implement merge sort and quick sort using multithreading in c# | |
An International market maker seeks C++ and C# developers to build out proprietary trading applications in both a windows and Linux environment. This firm has been growing steadily over the past couple years and have open development roles on their Market Data, Connectivity, Business Intelligence, GUI, Data Analysis and Speed … | |
Hi, i have created a window service with multithreading, but getting many deadlocks on sql in one Stored procedure when i start this service,and after that service does not do anything but in idle mode. the details of exception is below. Error :Wednesday, September 23, 2009 2:22:58 AM Method:UPD_CrawlerLastUrl 1. … | |
Hello, I'm making a browser based game in php and so far it's going really good. However I have a doubt about a script i've written. This script does alot of calculations using the data from the mysql database i'm using. So it reads and writes quite alot. And the … | |
I have one directory consisting of logfiles... I want to run 3 threads for m files where m is big. Here is my code in which i have created thread array and want to reuse the threads soon they finish the void run. But i am not able to use … | |
Hi, I was honing my linux programming skill when this nuisance started bugging me. I wanted to create an empty file creator program. While creating a large file it must print # for progress bar. But the output shows it happening reverse way. ie. first it copies file and shows … | |
Hi, We are planning to upgrade an existing VB6 application to C# ( VS2008 ). ADO.Net follows more a disconnected strategy when accessing Data. I'm thinking about giving the Entity Framework a shot since using an ORM-tool is higly recommended if you want to speed up the development. And EF … | |
Hi, I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop. I use MFC and DirectShow The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can … | |
When several producer threads put items in a queue.Queue, and a consumer thread gets items from the queue, there is no way for the consumer thread to tell the producers that they should stop feeding the queue. This snippet defines a subclass of Queue with a close method. After the … | |
The appearance, in some online store catalogues, of the dual-core Athlon X2 3800+ processor marks a welcome new entry to the processor battles. Although not yet officially announced, the X2 3800+ is expected to have a clockspeed of 2.0Ghz and to have 2x512Kb level 2 cache. Expect it to retail … | |
Hi, I've got two tables in a database - one a list of schools (around 50 entries), and one a list of pupils (around 17,000). Both are spatially-attributed using PostGIS. Basically I need to allocate each pupil to their nearest school. Currently I'm looping through the schools repeatedly, using the … | |
Hi all, I have a program which connects to sql and uses crystal reports. I have many records and crystal reports takes a while to load up. Would multi threading help improve performance? Here is my code: [code]Private Sub EmpLog_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim … | |
Hi everybody, i just have a task from my teacher..and the task is to make the chatting application with java (GUI = Swing) that implement the multithreading and multicast socket. can you give me the resource or tutorial??!! help me please.... :) | |
Currently I have started with my college project - Network monitoring, which may include features like keylogging, application blocking, h/w restrictions, catching snapshots, file operations surveillance, etc. (i mean as many as i would be able to add.) The platform for this project is C#.NET which is new to me. … | |
I want to do a multithreading program in c++. How to create thread in C++. I made a class with methods start() , run() etc for this purpose. But how to give delays. Am not able to implement multithreading. Can anyone tell me how to do that | |
Long story short, writing a multithreaded honey pot, and am having issues starting the honey pot servers. I'll get straight to the code, then explain the issue: Structure defs: [code=c] typedef struct __GENERIC{ int sock; char buff[MAXBUFF]; char ip[17]; int status; int port; int max_conns; // dMaxClients (Master = max … |
The End.