31 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ppel123

Hi everyone, I am working on an app and trying to create a corrector and I am using keyboard module for the correction. I have created a class, which reads pressed events and displays them to screen, and its action are dependent to a variable passed to the constructor. If …

Member Avatar for Dani
1
957
Member Avatar for ryantroop

Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, this is just a .h, .cpp, and main cpp but it's still a lot of lines) that wont just be …

Member Avatar for ryantroop
0
3K
Member Avatar for saurabh.mehta.33234

I am trying to understand the SynchronizedMap and I ran the below code. I get the below Output with an exception. According to my understanding the exception is caused when the get() methods are trying to access the syncmap when a thread is still executing a write on the map …

Member Avatar for JamesCherrill
0
671
Member Avatar for Mr.M

Hi Dw. I'm deeply in need of your help, I'm having a problem that is giving me a very serious problem with my code. My program is a multithreaded program and its a TCP/IP based application. Client has no problem, only a server that is being so weid to me …

Member Avatar for Mr.M
0
469
Member Avatar for moaz.amin.37

i write a program its output is below G:\Java\Multithreading>java NewThread Child Thread Thread[main,5,main] Main Thread 1 Child Thread 1 Main Thread 2 Main Thread 3 Main Thread 4 Main Thread 5 Main Thread Complete Child Thread 2 Child Thread 3 Child Thread 4 Child Thread 5 Child Thread Complete in …

Member Avatar for moaz.amin.37
0
288
Member Avatar for moaz.amin.37

when we create a thread like this class Run implements Runnable{ public void run(){ //You code } } class Helloworld{ public static void main(String args[]){ Thread t1=new Thread(new Run()); Thread t2=new Thread(new Run()); } } in above code thread t1 and thread t2 is creating in `main()` method its mean …

Member Avatar for JamesCherrill
0
267
Member Avatar for Tycellent

Hey guys, I'm interested in learning about simple multithreading in C++ for Windows. Does anyone have any reccommended tutorials/links thats quite good?

Member Avatar for dinad578
0
412
Member Avatar for krystosan

I am on OSx and I am trying to exit the program by pressing CTRL+C. but it seems like even if I have a signal handler registered in main thread it doesn't exit while the thread is executing on pressing CTRL+C. Here is a piece of cake where I am …

Member Avatar for TrustyTony
0
2K
Member Avatar for Rahul47

I was reading through Javascript overview on a webiste that stated following: 1) JavaScript can not be used for Networking applications because there is no such support available. 2) JavaScript doesn't have any multithreading or multiprocess capabilities. My Questions: 1) Which kind of 'Networking Applications' are we talking about? 2) …

Member Avatar for Rahul47
0
225
Member Avatar for poopuh

I've been asked to edit the code in this post http://www.daniweb.com/software-development/java/threads/455560/java-recursion-brute-force-sim so that it "Runs the function as a thread which wouldn’t then hang the program whilst it’s waiting for the result". I've looked it up, but I'm struggling to apply it to this program, any tips?

Member Avatar for JamesCherrill
0
637
Member Avatar for DJ-DOO

Hi Folks, I am writing an app that involves Client -> Server -> Client communication (one way traffic). I have my data transmitted from client A to the server, simple to test, just print to console, however, I'm trying to test to see if the data has been sent on …

Member Avatar for DJ-DOO
0
251
Member Avatar for crownedzero

Still playing with multi-threading and Prod-Con, at this point I've been at this for days. Would love some help debugging; thanks in advance. http://pastebin.com/jhHB9kTY - Main http://pastebin.com/BZSspf3x - Consumer http://pastebin.com/ndzAADJz - Producer http://pastebin.com/p7YdzH1D - Product http://pastebin.com/rxs3WzDT - Message http://pastebin.com/JR5ywgz1 - Utiliy 2 Producers, 4 Consumers Essentially Producers push a message …

Member Avatar for crownedzero
0
243
Member Avatar for rahul.ch

public class Thread7 implements Runnable { public static void main(String r[]) { Thread t = new Thread(new Thread7()); t.start(); public void run() { System.out.println("C"); System.out.println("D"); } System.out.println("A"); try { t.join(); System.out.println("B"); } catch(Exception e){} } } Query1: On compiling this program I get "illegal start of expression" error pointing to …

Member Avatar for delta_frost
0
271
Member Avatar for Zeref

Hi guys, So I'm busy writing an application that needs to update a list from the web after a certain amount of time. main.py file class Gui: def ...... def ...... def ...... def on_update_click(): update() app=Gui() Gtk.main() So when the program loads up, user will click the update button …

Member Avatar for Zeref
0
310
Member Avatar for Tellalca

Hey guys, I am playing with the .NET 4.0's new class Parallel. I tried to open files in a directory and calculate the total bytes of them. However when I run the code, I get a different result every time. Can you explain me the problem I have? [CODE]using System; …

Member Avatar for Momerath
0
205
Member Avatar for bilal_fazlani

I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it …

Member Avatar for TechSupportGeek
0
361
Member Avatar for Ratte

I am designing an application which communicates with another device via a serial port. My application buffers the received binary data until the data is valid/of known format, does some processing and then writes back a response. I understand this model is known as the consumer/producer model. The issue I …

Member Avatar for Ratte
0
239
Member Avatar for niranga

Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: …

Member Avatar for JamesCherrill
0
276
Member Avatar for DestinyChanger

Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger

Member Avatar for DestinyChanger
0
209
Member Avatar for chintan_1671

I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating …

Member Avatar for chintan_1671
0
199
Member Avatar for CJdamaster

Hi there, I'm working on a project which incorporates the following: [LIST] [*]Reading data from XML [*]Writing data to XML [*]Interpreting XML and passing the information to various places [/LIST] These are on different threads, and I've used a Mutex to make sure they don't try opening the main XML …

Member Avatar for CJdamaster
0
163
Member Avatar for initialise

Hi all, I could really use some help with a multithreaded server/client application that I'm building. I'm first experimenting with basic concepts and then am going to implement the results within a larger application. However, I find myself stuck on a particular issue. Initially, I transfer a file from the …

Member Avatar for initialise
0
169
Member Avatar for ezbaiby

Hey I have a program that has a webBrowser navigate through a few pages, and when it gets to the last page I set it to navigate to, checks if there is a certain string on that page. I just switched my code around to use multithreading and now the …

Member Avatar for ezbaiby
0
822
Member Avatar for gutchi

Hi Everyone! I have here a queue: [CODE]my $qTool = Thread::Queue->new();[/CODE] I want to show all the elements that the queue contains. [CODE]my $qItem = $qTool->peek();[/CODE] The code above returns only either the head of the queue or an element at a specified index. Is there a way for me …

Member Avatar for d5e5
0
231
Member Avatar for SoulReaper1680

Hey, I was trying to make a program which displays two chars A and B on the screen. Using the WASD keys, it lets you move the A char around and using the arrow keys it lets you move the B char around. I wrote the following: [CODE]Module Module1 Dim …

Member Avatar for SoulReaper1680
0
144
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Member Avatar for Ancient Dragon
0
697
Member Avatar for daudiam

I want to make a GUI application in which I want to do something continuously (i.e. in while loop) in a different thread, until the user presses a button. In this other thread, I am accessing GUI elements and hence I have to use [B]SwingUtilities.invokeLater()[/B] for this thread. But since …

Member Avatar for daudiam
0
1K
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
202
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
137
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

The End.