pass variable by reference to each thread Programming Software Development by mrar85 … int countthread; public static void main(String[] args){ /* Get an executor service that will run a maximum of 100 threads at a… concurrently as a runnable: */ exec.execute(new sum()); } /* Tell the executor that after these 100 steps above, it will be done… Re: Thread Pool Executor Programming Software Development by emclondon … be used to develop a pooling mechanism for a web service, which serve at least 10000 requests for 30 seconds. smaller… Re: Thread Pool Executor Programming Software Development by emclondon …("Thread#3")); System.out.println("\nShutting Down Service"); exec.shutdown(); } } [/CODE] RunnerClass.java [CODE]public class RunnerClass… Re: How to use FixedThreadPool ? Programming Software Development by ~s.o.s~ …://download.oracle.com/javase/tutorial/essential/concurrency/pools.html"]Executor service[/URL] which was introduced in Java 5, specifically the fixed… thread pool executor. The [URL="http://download.oracle.com/javase/7/docs… Re: Suddenly getting "Too Many Open File" error Programming Software Development by newbie14 … using java 5. I will try to look into the executor service and also other pooling. I am sorry quite new into… Trojan Related Problems Hardware and Software Information Security by on_way_to_fame … Networks\VeohWebPlayer\veohwebplayer.exe" O4 - HKCU\..\Run: [Executor] "C:\Program Files\Executor\Executor.exe" -s O4 - HKCU\..\Run: [SpybotSD TeaTimer…:\Program Files\Common Files\Sony Shared\Fsk\SonySCSIHelperService.exe O23 - Service: Audio Service (STacSV) - IDT, Inc. - C:\Windows\System32\DriverStore\FileRepository\stwrt… Re: Trojan Related Problems Hardware and Software Information Security by on_way_to_fame …:\Program Files\Veoh Networks\VeohWebPlayer\veohwebplayer.exe C:\Program Files\Executor\Executor.exe C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.exe… Files\Executor\Executor.exe" -s O4 - HKUS\S-1-5-19\..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User 'LOCAL SERVICE Re: Trojan Related Problems Hardware and Software Information Security by on_way_to_fame Hi, Executor is a application launcher, that I have been using for … never caused any problems. [URL="http://lifehacker.com/400566/executor-is-impressive-full+featured-app-launcher"]Details here[/URL… Virus report: msdirectx.sys Hardware and Software Information Security by Gorp …HKLM\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft Hosts Service] Isass.exe O4 -…\..\RunServices: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\RunServices: [Microsoft Hosts Service] Isass.exe O4 -… Security\Norton AntiVirus\SAVScan.exe O23 - Service: ScriptBlocking Service (SBService) - Symantec Corporation - C:\… Re: Virus report: msdirectx.sys Hardware and Software Information Security by Gorp …" O4 - HKLM\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft Hosts Service] Isass.exe O4 - HKLM\..\Run: [TkBellExe….exe O4 - HKLM\..\RunServices: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\RunServices: [Microsoft Hosts Service] Isass.exe O4 - HKCU\..\Run: [Windows_Protect… Re: Virus report: msdirectx.sys Hardware and Software Information Security by Gorp …\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft Hosts Service] Isass.exe O4 -…\..\RunServices: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\RunServices: [Microsoft Hosts Service] Isass.exe O4 -… Security\Norton AntiVirus\SAVScan.exe O23 - Service: ScriptBlocking Service (SBService) - Symantec Corporation - C:\… Re: Trojan Related Problems Hardware and Software Information Security by jholland1964 … familiar with...one is this one C:\Program Files\[B]Executor[/B]\ I have found virtually no information on this one… Re: Virus report: msdirectx.sys Hardware and Software Information Security by swatkat ….exe O4 - HKLM\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft Hosts Service] Isass.exe O4 - HKLM\..\RunServices: [MicroSoft….exe O4 - HKLM\..\RunServices: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\RunServices: [Microsoft Hosts Service] Isass.exe O4 - HKCU\..\Run: [Windows_Protect… tomcat 7. 0 error: The requested resource (/helloservlet/hello) is not available. Programming Web Development by Ajuddy service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor…thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="… pool--> <!-- <Connector executor="tomcatThreadPool" port="8080"… Re: Virus report: msdirectx.sys Hardware and Software Information Security by Gorp …" O4 - HKLM\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft Hosts Service] Isass.exe O4 - HKLM\..\Run: [TkBellExe…:\Program Files\Norton Internet Security\Norton AntiVirus\SAVScan.exe O23 - Service: ScriptBlocking Service (SBService) - Symantec Corporation - C:\PROGRA~1\COMMON~1\SYMANT… Re: Virus report: msdirectx.sys Hardware and Software Information Security by swatkat …]O4 - HKLM\..\Run: [MicroSoft Remote Secure Service] MSRSS.exe O4 - HKLM\..\Run: [MS Internet Executor 32] MSIXEC32.exe O4 - HKLM\..\Run: [Microsoft… Hosts Service] Isass.exe[/b] Close all other… I am trying to run batch script in Jenkins client machine, but not succeede Programming Software Development by prashant_savadi ….execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException… Finished: FAILURE I have made Jenkins service as Windows service and tried with providing administrator privileges to… the service. But I am facing the same… Re: Maintainining common API between related classes Programming Software Development by Taywin How about break it down into two classes for HTTP and Database connection executors? This way, it would be more explicit and ensure that users should use different executor for different type of connection? Re: Maintainining common API between related classes Programming Software Development by ~s.o.s~ IMO, the connection executor is not the right entity to handle the result of … Re: pass variable by reference to each thread Programming Software Development by stultuske no, it will always add 1, but, without synchronization, you may have: ... At thread 28 sum is 28 At thread 29 sum is 29 At thread 30 sum is 30 ... but, you can also get: ... At thread 29 sum is 29 At thread 28 sum is 28 At thread 30 sum is 30 ... Re: pass variable by reference to each thread Programming Software Development by NormR1 What happens when you execute the program? Re: pass variable by reference to each thread Programming Software Development by mrar85 so meaning that, the value of sum that start with zero is going to increment by the number of thread that are running? which mean, if the thread started the 100th thread, the value of sum will change to 100 yeah? so does that mean with synchornization the increment will properly followed by 1-100 sequence? and without synhcronization the 1-100 … Re: pass variable by reference to each thread Programming Software Development by stultuske well ... 'm not sure whether it is correct or not. the bigger the loop, the bigger the chance for 'inconsistencies'. but yes, without synchronization, you can never tell up front in what order it will happen. [URL="http://docs.oracle.com/javase/tutorial/essential/concurrency/interfere.html"]here[/URL] you can find a simple example … Re: pass variable by reference to each thread Programming Software Development by ~s.o.s~ [quote]Im not sure wht does the question want by meaning this “Each thread adds 1 to a variable sum that initially zero”…[/quote] First off; the question explicitly mentions "launching" threads which is bit different from creating a "pool" of threads. No need to extend the `Thread` class, just make your work class implement … Re: pass variable by reference to each thread Programming Software Development by JamesCherrill Here's an article that explains simply and briefly what this exercise is all about: [url]http://www.informit.com/guides/content.aspx?g=java&seqNum=248[/url] Re: pass variable by reference to each thread Programming Software Development by ~s.o.s~ Not exactly; all AtomicXXX classes use lock/wait free constructs whereas "synchronized", which is what the OP has to use, is inherently a lock based approach. Though I agree the article would be the next logical step i.e. going from synchronized to lock-free implementation. Re: pass variable by reference to each thread Programming Software Development by JamesCherrill Yes. I was just thinking about the first part - explaining the problem of lost updates, and exactly how the actual output may vary from the expected output. I agree that the rest of the article, no matter how relevant it may be to real life, isn't exactly what the OP's homework is calling for. Re: pass variable by reference to each thread Programming Software Development by mrar85 alrite....my effect of synchronization/non-synchronization it is not shared...i can see that ...the code for two "runnable classes" is it something like this: [CODE]class work implements Runnable{ private MutableInteger par1= new MutableInteger(0); public work(MutableInteger par1){ this.par1=par1; } public void run() { … Re: pass variable by reference to each thread Programming Software Development by mrar85 and the ouput of the program is something like this now: [CODE]at Thread-0 sum is 1 at Thread-1 sum is 2 at Thread-2 sum is 3 at Thread-4 sum is 4 at Thread-3 sum is 5[/CODE] so is this the ouput should be like? Re: pass variable by reference to each thread Programming Software Development by NormR1 The output will depend on when each of the threads is executed and whether there were any collisions. Have you run your test with a large number of threads and looked at the output? Using synchronized and without it.