Compiling on a dual core machine and running the class files on linux.

does compiling on a dual core machine and running the class files on linux have any effect?

well, the problem that i felt was that when i runmy
class files on my machine(windows xp, dual core),
Thread.sleep(60000) sleeps for 1 minute. but wheni
run it on a linux machine, Thread.sleep(60000)sleeps
for 2 minutes. my application has a lot ofthreads.
I can't be 100% sure, but I'm pretty sure that
sleep(60000) doesn't sleep for 2 minutes on the other
machine.I, wholeheartedly, agree.
Due to timing issues it may seem to sleep a few milliseconds more, but not double.
Of course, if there is a "real-time" (or even simply higher than the Java app) priority program running that is using a lot of the CPU it may seem like it sleeps a lot longer than 60000, but that is a different issue.

Similar Messages

  • I have downloaded the Premiere 10 trial and run the exe file in...\Adobe Premiere Elements 10\PRE 10

    I have downloaded the Premiere 10 trial and run the exe file in...\Adobe Premiere Elements 10\PRE 10\ElementsSTIInstaller, However, I can not find the program on my computer.  Can you please tell me the procedure to install the program following the down load???
    P.S. the download assistant does not install the program automatically and I have restarted the computer.
    Thankyou

    this might help:
    http://helpx.adobe.com/photoshop-elements/kb/install-premiere-elements-photoshop-elements. html

  • I'm running windows 7, downloaded firefox 3.6, when I click to open and run the exe file, it says the file is corrupt. Any thoughts? I have the latest Adobe Flash Player installed

    Says file is corrupt every time I try to install Firefox 3.6

    Hi Raphe,
    There are a couple of things I know that can cause this. One of which I have experienced myself.
    Sometimes, your router may be faulty. This will usually effect all downloads unless they are very small files. I have experienced this myself, and found the only way to fix the problem is to replace it.
    Another problem that could cause this is a virus. You should scan your computer for viruses using a trusted antivirus. The virus is sometimes scareware which claims you have a virus, but actually, the only virus is the scareware antivirus!
    I hope this helps,
    -Taddle

  • Running the .class file from java code

    I'm doing a kind of providing service like compiling and running Java code on server side and giving output to the end user.
    Please suggest me an approach with code to run .class file from the Java code.
    import java.io.*;
    public class demo {
    public static void main(String args[]) throws IOException, InterruptedException {
    int result;
    try {
    System.out.println("command output:");
    Process proc = Runtime.getRuntime().exec("java -cp . demoh");
    InputStream in = proc.getInputStream();
    result = proc.waitFor();
    BufferedInputStream buffer = new BufferedInputStream(proc.getInputStream());
    BufferedReader commandOutput = new BufferedReader(new InputStreamReader(buffer));
    String line = null;
    System.out.print(commandOutput);
    try {
    while ((line = commandOutput.readLine()) != null) {
    System.out.print(line);
    System.out.println("command output: " + line);
    }//end while
    commandOutput.close();
    } catch (IOException e) {
    //log and/or handle it
    }//end catc
    } catch (IOException e) {
    System.err.println("IOException raised: " + e.getMessage());
    }

    What happened when you tried what you have there?

  • Very sick Macbook Pro OS v 10.6.8 - initially running slow so I tried backing up to Time Machine and reloading the OS but the install disk failed. I was able to recover from the Time Machine back up but many applications are not working properly. Help!

    I am also no longer able to back up using Time Machine (backups fail), can't access iPhoto (which was a problem before attempting to reload OS) and I suspect other apps are no longer working. The computer is however running faster in Safari and Mail...any suggestions would be greatly appreciated.

    If there are any files you can transfer to  a regular storage drive do that first and then disconenct all drives.
    Hold c boot off the 10.6.8 disk and use Disk Utility to Erase with Zero option the hard drive, takes some time, let it complete as it's mapping off any bad or failing sectors.
    Then install 10.6. log in and update to 10.6.8 (important!)
    Now use Migration Assistant to transfer over just your user files, we need to rescue those first out of TimeMachine's EVIL clutches, once you've got that, transfer them to the regular storage drive and disconnect.
    Note: if your 10.6 disk fails, call Apple for a replacement, you need the machine specific version, the 10.6.3 retial doesn't have iLife and only works for machines pre 10.6.3 release, not afterwards. Factory installed 10.6.4 machines and afterwards need machine specific disks.
    Then either:
    Log into the admin/first set up user on the machine and delete the Migrated user, then reboot and use Migration assistant again to TM everything this time
    Or
    Just install all your programs again from fresh sources.
    If your TM drive is really hosed, then you'll need Data Rescue $99 to read the TM files directly and transfer the results to another regular storage drive (not the first one just in case), then pick through the debris and locate your files and transfer them to another drive.
    I don't like TimeMachine, but for newbies it's better than nothing.
    (I prefer cloning my entire OS X parititon instead, I can access it from any computer (Linux, Mac or PC) and I also can boot my Mac from it. I use Carbon Copy Cloner, but that's for later once your all better. )

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to compile and run PRO*C programs in Linux

    Hi all,
    This is my first post in this forum.
    I have Oracle 9i installed in linux platform .
    How can i compile and run Pro*C programs in linux.(i mean any commands or procedure to run these programs)
    please help me in this regard.
    Thanks in advance,
    Trinath Somanchi,
    Hyderabad .

    (1) How to compile the Pro*c program U got to have a makefile to compile a Pro*c program. It helps u in compiling and creating an excutable. Once U have created a makefile , just call "make" and it will do the compilation and create the executable as well.
    For a sample makefile visit
    http://asktom.oracle.com/~tkyte/proc_makefile/
    (2) How to run the Pro*c program ? and Once U have created an executable, U shall call that directly as any other linux command. Make sure U have the permissions to run the executable. If not give the permissions using chmod 777 executable
    (3)How to get the output of the program ?Question 2 and 3 are the same. I mean running and getting a output are the same

  • How to compile and run the servelt

    how to the compile and run the servlet programmes and how should i deploy them
    and is there any site for the tomcat server free download

    your first question is too general. you'll need a tutorial a Hello World on a servlet...google it.
    for the second one go to [http://tomcat.apache.org]

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • How to run a class file in MAC os, compiled in XP.

    Hi all,
    i am compiling a java program in windows using JDK 1.5 and i am copying this file to MAC os (Panther). In Mac i am running this class file using JDK 1.4.i am getting the following exception,
    Exception in thread "main" java.lang.UnsupportedClassversion error.
    This is understandable, but is there any solution for this ...
    Any one experienced the same problem ...
    If any one comes up with a solution to solve this, plz let me know...
    Thanks in advance......

    You are compiling it in 1.5 and expecting 1.4 to run it?
    You have two options: compile it at the 1.4 level or upgrade your Mac to 1.5

  • Why is it that the new macbook pro processor upgrade option only offers up to 2.8 Ghz with Intel Dual Core i7, when back in Sep 12 I bought a 2.9 Ghz Intel Dual Core i7 Macbook, is the new one tuned to go much faster anyway?

    Why is it that the new Macbook Pro processor upgrade option only offers up to 2.8 Ghz boosting to 3.3 Ghz with Intel Dual Core i7, when back in Sep 12 I bought a 2.9 Ghz boosting to 3.6 Ghz Intel Dual Core i7 Macbook, is the new one tuned somehow to go much faster anyway, or will the new one be slower in fact?  Or does the solid state drive compensate for the lack of increased processor capacity?

    The CPU's come from different Intel 'families'.  The older ones are 'Ivy Bridge' and the newer ones are 'Haswell'.  Numbers alone will not determine the efficiency of  CPU.
    Ciao.

  • While Deploying and running the application

    Dear all,
    While deploying and running the application, after importing the relevant files into my local amchine workspace from another machine, i am facinf exception/error message as below:
    'Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found'.
    Would someone suggest for the same.
    With Regards,
    Lux.

    Hi,
    This is the message i am receving during runtime
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Web Dynpro runtime:
    Vendor: SAP, Build ID: 6.4013.00.0000.20050607163945.0000 (release=630_SP_REL, buildtime=2005-06-07:21:12:54[UTC], changelist=351986, host=PWDFM067)
    Web Dynpro code generators of DC local/SurveysOverview:
    SapDictionaryGenerationCore: 6.4013.00.0000.20050606171348.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:02:28[UTC], changelist=351717, host=PWDFM026.wdf.sap.corp)
    SapMetamodelWebDynpro: 6.4013.00.0000.20050609113138.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:05:41[UTC], changelist=352442, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCore: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:40[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)
    SapWebDynproGenerationCTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)
    SapGenerationFrameworkCore: 6.4013.00.0000.20041104141254.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:55:55[UTC], changelist=298452, host=PWDFM026.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:17[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)
    SapMetamodelDictionary: 6.4013.00.0000.20050606171352.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:59:56[UTC], changelist=351719, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCommon: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:48[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationCore: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:46[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda:
    No information available
    Web Dynpro code generators of DC sap.com/tcwdcorecomp:
    No information available
    J2EE Engine:
    No information available
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_08-b03, vendor: Sun Microsystems Inc.
    Operating system:
    Windows XP, version: 5.1, architecture: x86
    Error stacktrace:
    java.lang.NullPointerException
         at com.sap.survey.NewSurveyView.onActionCreateSurvey(NewSurveyView.java:180)
         at com.sap.survey.wdp.InternalNewSurveyView.wdInvokeEventHandler(InternalNewSurveyView.java:198)

  • Is it possible to convert Java to EXE and run this EXE file without any JRE

    hello friends
    I have GCC/GCJ for windows but dont know how to work with it... it creates file with .o extension but i m not able to create .exe from that... i installed mingw for that also .. unsuccessful ...
    tell me the solution for it... i want to generate machine dependent exe from java file...on the web i ve seen that GCC/GCJ is used on linux platform..not cleared properly..
    Again i m writing my question
    Is it possible to convert Java to EXE and run this EXE file without any JRE if yes then how... tell me the procedure to do that...

    Vipul wrote:
    Its software now hardware .... some times u need these things ...anyway do u ve solution for my questionSo what? By creating a native executable you are restricting the program to the OS for which that native executable was made, just like removing the engine from a car restricts driving to downhill only. So like the I said, the principle remains the same, "Why would you want to?"
    I am asking you, truthfully, why do you feel the need to negate the largest advantage of using Java by creating a native executable from it?
    What is your rationale?
    I can pretty much guarantee there is a much better way of achieving your wish without "removing the engine".

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • Problem with checkbox and run the get button event continuously

    Hi all,
    I have a checkbox list of 3 sensors. I have used the X-Control (for checkbox) found in the following link for my application https://decibel.ni.com/content/docs/DOC-30558. I have problems to achieve the following.
    Suppose i check Vibration and Strain, I should be able to display both Vibration and Strain data. (I should compare each element of 1d array with the string constant and run the case structure).
    I have to run the GET event continuously to display the data. 
    I have attached the code to the post.
    Please can anyone suggest how to go about this.
    thanks in advance
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏69 KB

    Hi Bob_Schor,
    I tried using the approach you mentioned. I cant run continuously. I am not able to figure out where i am going wrong. I have attached the updated vi. 
    Hi Hooovahh,
    The link you have posted seem to work with LV2013. I am currently using LV 2011. Can you please update it to 2011. Is OpenG necessary for this?
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏77 KB

Maybe you are looking for

  • I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources.  How do I enable my iPhone to do it? Tks in advance.

    I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources into my iPhone (it's presently receiving msgs from only one of them).  How do I enable my iPhone to do it? Tks in advance.

  • Buffer Overrun Detected

    Hi Apologies of this has been asked before. When running an QT movie created in Flash CS3 I get the 'buffer overrun detected' error message. I am using a PC with Windows XP Home Edition SP2 - any help and advice would be much appreciated. Thanks Geor

  • Serial Port not accessible until I run MAX

    Hi! On my machine I can access all Serial ports perfectly. I put a Vias Resource in my VI and get a drop down menu with all my serial ports. But on other machines (Runtime v7 and VISA runtime installed) I don´t get the names (e.g. com1 com2) but only

  • 9 Weeks no Broadband, no sign of getting any help

    On the 22nd of APRIL I posted this https://community.bt.com/t5/BT-Infinity-Speed-Connection/engineer-came-but-cant-connect/m-p/1273357 9 Weeks later I still haven't resolved the issue. I have had 3 Openreach engineers out who now have got to the stag

  • How to exclude birthdays in Siri?

    When I book an appointment with Siri, it tells me it "conflicts with another appointment" if there's a birthday on that day. So apparently, it considers birthdays as "all day events". This is quite annoying and greatly lowers the efficiency of enteri