Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Reverend Jim … comment tool to give kudos instead of reviving a multi-year old thread by adding a new post. Using the comment tool…, it also gives points the the person who posted the thread you are commenting on. Multi Thread Programming Software Development by jas2010 I have a question. I have a report that the load time is different I want show wait time to user , I think should use the Multi Thread but I not know how works it. Re: Multi Thread Programming Software Development by sknake …void buttonRunReport_Click(object sender, EventArgs e) { //runs on gui thread frm = new frmProgress(); DateTime dtStart = DateTime.Today.AddDays(-…} private void RunReportCallback(IAsyncResult ar) { //runs on another thread AsyncResult result = (AsyncResult)ar; Func<DateTime, DateTime, … Re: Multi Thread Programming Software Development by privatevoid I need a bit more information about what you are trying to do before I can be much help. To use multithreading have a look at delegates and the BeginInvoke() method. There is lots of information available about multi threading and worker threads out there. Re: Multi Thread Programming Software Development by privatevoid … run whatever is taking a long time on a seperate thread, have a look at this tutorial: [URL="http://en… C++ Server: Multi-thread VS Single-thread Programming Software Development by MarcosEdu … I have been reading alot about Single-thread VS Multi-thread server and i wanna know what u …guys think about it. I do not plan on using one-thread… sayin that have done webservers with only 1 thread (3 in my case, cause 1 for … database (mysql in my case) LOCK my thread for a couple ms? or its just like… Re: Multi Thread Help Programming Software Development by Ezzaral …here is a small example of a multi-threaded server that I was playing around…IOException ex) { ex.printStackTrace(); } } private class ProcessThread extends Thread { ServerSocket server; ExecutorService requestPool; public ProcessThread(ServerSocket server){ this… Re: Multi Thread Help Programming Software Development by bloody_ninja …exactly what to put to make it a multi user program. [code=java] public static…hostServer = new ServerSocket(port); socket = hostServer.accept(); Thread t = new Thread(n); t.start(); } // If guest, try to… Re: Multi Thread Help Programming Software Development by sanzilla … you have to connect to the server to enable the multi user chat , like the IRC chat ! I think you have… if (isHost) { hostServer = new ServerSocket(port); socket = hostServer.accept(); Thread t = new Thread(n); t.start(); } // If guest, try to connect to… Re: Multi Thread Help Programming Software Development by Alex Edwards … a while loop, a swing object, or a personal dedicated Thread for doing so). Now to send and receive information seems… works. --mentioned above, You should be capable of establishing a multi-threaded environment for your Client/Server. You may (or may… Re: Multi Thread Help Programming Software Development by Alex Edwards …(Exception e){e.printStackTrace();} } } private void sleep(long milliseconds){ try{Thread.sleep(milliseconds);}catch(Exception e){} } private class MyThread implements Runnable… but it gets some of the main points of network + multi-threading across. Edit: Looking back at the code, I think… Re: Multi Thread Help Programming Software Development by VernonDozier … my league on sockets. I've written a single-server, multi-client socket program successfully, but usually screw up a few… Multi Thread Help Programming Software Development by bloody_ninja … if (isHost) { hostServer = new ServerSocket(port); socket = hostServer.accept(); Thread t = new Thread(); t.start(); } // If guest, try to connect to the… Re: Multi Thread Help Programming Software Development by sanzilla … if (isHost) { hostServer = new ServerSocket(port); socket = hostServer.accept(); Thread t = new Thread(n); t.start(); } // If guest, try to connect to… Re: Function returning a value (multi-thread) Programming Software Development by Robbert … 6.7 and it was returning "<Thread(Thread, stopped)>" I tryed it in Python… know how I can return a value whilst using multi-thread - thanks Revised code [CODE] import threading import … no. " + value return str thread1 = threading.Thread(stringFunction("one")) thread1.start() thread1.join() while… Re: Multi Thread Programming Software Development by jas2010 hi Please help me . Re: Multi Thread Programming Software Development by jas2010 Hi I have a report that for first time take 10 sec to load and for next time take 4 sec Now I want to show user wait form. Re: Multi Thread Programming Software Development by privatevoid I like the use of the generic delegate! I hadn't thought about using them like that, it's much tidier than creating a custom delegate every time. Re: Multi Thread Programming Software Development by jas2010 Every Thank you I will review the code you soon Re: Multi Thread Programming Software Development by jas2010 now Re: Multi Thread Programming Software Development by jas2010 hi First thank you , Secondly your code is static for example you definition show wait from 10 sec but i want to show wait form until report in the first form Be loaded and I not know How long does it take Re: Multi Thread Programming Software Development by sknake It is static to intentionally cause a delay to simulate your condition. The progress form will keep showing a "working" progress bar until the operation completes regardless of the actual time required. Multi Threading Programming Software Development by achiman I am try to form a multi thread in my program but its giving this error … cannot find symbol symbol : class mythread2 location: class Multithreading Thread mythread1; mythread2 ^ \Java.java:88: mythread1 is already … tell me if it is possible to form a multi thread with [CODE](this)[/CODE] statment because I think … multi thread program Programming Software Development by jimJohnson …will demonstrate your understanding and mastery of multi-threaded application concepts in a Windows environment … should be displayed (along with a thread identifier). Thread two should then wait for another set… __stdcall SecondThreadFunc( void* pArguments ) { printf( "In second thread...\n" ); while ( Counter < 1000000 ) Counter++;… Re: multi thread program Programming Software Development by nbaztec >>Wrong thread Was there a pun intended? >>This is alll … makes you think otherwise? During multi-threading you have virtually no control so as which thread finishes first, provided they were all… Re: multi thread program Programming Software Development by Ketsuekiame … moment you're waiting for a thread to exit. You need to wait for a thread to signal. Using a mutex is… Re: multi thread program Programming Software Development by Ketsuekiame @nbaztec: I posted a reply to another thread in here so I edited it out. Also, seeing as I'd already made a post, I thought I may as well help, so I edited it again with some advice. @OP: Look into some of the functions I've linked you to and if you still need help, post up your new attempt and I'll see what you're struggling with. Re: multi thread program Programming Software Development by Ketsuekiame … to synch up two threads operating separate to the main thread. Both of the new operation threads, in my opinion, would… Re: multi thread program Programming Software Development by nbaztec … & Waiting all of them to finish inside the job thread. All 5 "child" threads will certainly have access… Re: multi thread program Programming Software Development by jimJohnson … WaitForSingleObject (hMutex, 5000L); switch (dwWaitResult) { // The thread got mutex ownership. case WAIT_OBJECT_0: __try { if (counter …% 2) { counter++; printf( "Thread Two Counter is-> %d\n", counter ); }…