Search Result

Collapse
10 results in 0.0039 seconds.
Keywords
Members
Tags
threads
  •  

  • Threading: Threads stall, while others run.

    When the program starts, it checks for the amount of threads the user wants to use to download files with. The threads are then created. When the user chooses a file to download, the threads begin grabbing the file until it's fully downloaded.

    The problem is, some threads stall right from the start, & just sit there doing nothing.

    The global work variable is Sync-Locked, then quickly released by each instance, &...
    See more | Go to post

  • What is the best way to kill a thread in a Timer?

    What is the best way to kill a thread in a timer such that every time the timer runs, it kills the previous thread before starting a new one?

    Code:
    public class MapTimer extends TimerTask{
    
    public void run() {
    
    
            try {
    
                connected = startConnection();
                sendMessage(this.message);
                System.out.println("Sending message111
    ...
    See more | Go to post

  • sedefy
    started a topic help me in threads
    in C

    help me in threads

    i work in VC++ win32 application
    i want to creat 2 threads th1 and th2
    th1 will run th2 and wait 10 second and increment a counter
    th2 will run 1 second and increment another counter
    during the 1 second of th2 it will run a small functions according to counters c1,c2 values
    each time th2 interrupt the running small programs to increment c2 when it come back the interrupted program should incremented from its last...
    See more | Go to post

  • phpuser123
    started a topic Why my run method is not working?
    in Java

    Why my run method is not working?

    This program consists of a client1 named client1 and a server named server.My client is able to connect to the server but the server cannot catch what my client is sending as inputs.

    Here are the codes
    client codes

    <code>
    import java.io.Buffere dInputStream;

    import java.io.Buffere dOutputStream;
    import java.io.IOExcep tion;
    import java.io.InputSt reamReader;
    import...
    See more | Go to post
    Last edited by phpuser123; Sep 13 '10, 08:47 AM. Reason: There was an error in the code

  • JSan
    started a topic Parametrized Threads in Windows Server 2003 R2

    Parametrized Threads in Windows Server 2003 R2

    Hi all, I've been working on an .net application which starts different instances of a class, each one contains a main thread (it's a TcpListener). The application so far in the development PC (WinXP SP3 Pro, VS2008, .net Framework 3.5 SP1) works very nice, but when i move it to the destination machine (Windows Server 2003 R2, .net Framework 3.5 SP1) it just doesn´t works. I've tracked the error to the main thread in each one of the instances, and...
    See more | Go to post

  • How to allow thread to finish before next iteratation/check using a Timer object?

    Hi there,

    Im using a Timer with an interval of 1 min (60000 milliseconds) to start a thread in the Global.cs of my application. Everything works fine until the the thread job takes more than 1 min to complete. When the job takes longer that 1 min, the old (currently running) job never seems to get to completion.

    Basically I only want to re-run the thread once its complete but using the Timer so I can potentially leave...
    See more | Go to post

  • marom27
    started a topic Timer does not produce a callback thread
    in .NET

    Timer does not produce a callback thread

    Hi,

    I have a service (WCF) that uses timers to make some operations periodically.
    Generally everything work fine.
    But sometimes, when I use the Visual Stiudio 2008 debugger, and stop the debugger and reactivate it, altough the timers are initialized, they are not create their callback threads.

    piece of code for example that initializes the timers :

    Code:
       if (this.timer1 == null)
    ...
    See more | Go to post

  • Implementation strategy: Registering and unregistering entities

    Hello Everyone!
    I have to ask about how do I approach this problem. The scenario is explained below.

    We are a QA organization and need to deploy many versions of an application. There are some helper scripts which gather information about the app (version, components, host name, etc) and hit a PHP get URL. This PHP code saves the information inside an XML file.

    While apps regularly get recorded into this XML,...
    See more | Go to post

  • How to create a separate thread to process events?

    Here is my problem. I have a thread which constantly polls a piece of hardware's serial output. Every time it detects a certain serial sequence, it triggers an event handler wherein I have code which processes said sequence.

    The problem is that the processing is quite time intensive. I noticed that when the program is in the event handler, the hardware is not being polled. If possible, I would like the processing and polling to happen...
    See more | Go to post

  • share resource b/t child thread & parent thead

    hi all,

    I have met a problem with asp.net. Textbox can't be updated. "Main Thread" runs on Page_load. It calls child thread, which changes the text of textbox, recursively.

    Here is my code

    Code:
        protected void Page_Load(object sender, EventArgs e)
        {
         serverSocket = new Socket(AddressFamily.InterNetwork,
                SocketType.Dgram, ProtocolType.Udp);
    ...
    See more | Go to post
Working...