Run x times a second

How do i make a loop only run x times a second. There is something with getting current time and dividing, and stuff with something and sleeping for that time. Kinda like max FPS, i have no idea how to dsecribe it, i've seen it done a thousand times before but i cant google something i dont know what its called.
Sorry if htis makes no sense, but its really really simple, i jsut dont know how.
thanks

Thread t = new Thread();
int amountPerSecond = 10;
try {
    for (int i = 0; i < amountPerSecond; i++) {
        System.out.println("test");
        t.sleep(1000 / amountPerSecond);
} catch (InterruptedException e) {}This'll make it loop amountPerSecond times per second.

Similar Messages

  • How to make a method run 25 times in 1 second?

    I have a JPanel that implements Runnable and that has animation on it. I need to update the screen 25 times per second. I have a vague idea that I need to call function run() 25 times a second, but how do I do that? Thank you!!!

    Hi how are you ?
    I noticed that you have some duke dollars for this questions:)
    Here is the answer.
    You won't want to call the run method 25 times by the way. Within your run method you can call a method that is going to do the animation 25 times .
    Example:
    void doAnimation(Graphics g){
    for(int i = 0 ; i < 25 ; i++){
    g.drawImage(yourimages,x,x);
    try{
    Thread.sleep(250);//or whatever the interval is
    }catch(InterruptedException e){}
    g.drawImage(clearscreenimage,x,x);
    let me know how that works for you ?
    however, the exact timing depends on the monitor being used and the OS being used. it's a bit more involved. but the answer above is a basic one.
    stephen

  • The query just run the first time, the second doesnt run

    The query just run the first time, the second doesnt run, i checked it in the SM50 and appear this msg:
    CL_RSR_CACHE_BO_FF============CP
    its not a problem of indexes, i repaired it but its really weird cause the first time the query run ok, the second doesnt, it seems that the cache is confused or i dont know, help guys, i'll really appreciate it

    I was watching the notes, its really weird when i load the cube and execute the query for the first time, its ok, to the second stay in cache, but i was watching that the cube doesnt allow me activat the BD statistics, i dont know if this is necesary to improve the performance of the query, what i know is this:
    1- before i create a Hierarchy for an infoobject thta is in the cube ,  the query used to run ok. Now when i load the first time and execute its ok, but the second stay in cache.
    2- now i can activate the statistics for the cube, the indexes are ok, i checked for the RSRV and all is ok less the statistics.
    what can i do help friends...

  • Query that becomes slower and slower when runned several times

    Hi everybody,
    I have an issue with one querie...
    I have a select that is a join between 3 subqueries, 2 of them are using a function with pipeline.
    When I run this query it work fine.
    * First run lasts less than 1 sec.
    * Second run lasts less than 1 sec.
    * Third run lasts 2 sec.
    * Fourth run lasts 2 min.
    * Fifth run lasts 10 min.
    * ... and then worse an worse...
    Of course, I always use same bind variables and data within the database does not change.
    I looked at the execution plan that seems to be the same for all the runs.
    The problem is during the Execute phase :
    for the first run :
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.20 0.20 0 1215 0 0
    Fetch 3 0.12 0.14 0 246 0 19
    total 5 0.33 0.36 0 1461 0 19
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 66
    for the fifth run
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 95.29 100.96 0 1215 0 0
    Fetch 3 0.27 0.39 0 246 0 19
    total 5 95.57 101.36 0 1461 0 19
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 66
    I didn't find dynamic sampling during the execution plan.
    All subqueries are very stable in time.
    When the join query starts to have a strange behavior, subqueries are still very perfomant !
    If I flush the shared pool, the problem disappear and the cycle restarts...
    1) any idea of the root cause of the issue ?
    2) is there a solution (with hint for instance) for not recording the query inthe shared pool ?
    Thanks in advance...
    The query is :
    select
    a.anneefiscale,
    a.marque,
    a.priorite,
    a.de,
    b.eng_et_real_total "eng et real annee moins 1",
    c.estime "estime",
    a.engage_nip "engage nip",
    a.engage_autre "engage autre",
    a.engage_total "engage total",
    a.realise_nip "realise nip",
    a.realise_autre "realise autre",
    a.realise_total "realise total",
    a.eng_et_real_nip "eng et real nip",
    a.eng_et_real_autre "eng et real autre",
    a.eng_et_real_total "eng et real total",
    decode(c.estime,0,NULL,round(a.eng_et_real_total/c.estime*100,1)) "pourcentage"
    from
    select
    anneefiscale,
    marque,
    priorite,
    de,
    round(sum(engage_nip)) engage_nip,
    round(sum(engage_autre)) engage_autre,
    round(sum(engage_nip)+sum(engage_autre)) engage_total,
    round(sum(realise_nip)) realise_nip,
    round(sum(realise_autre)) realise_autre,
    round(sum(realise_nip)+sum(realise_autre)) realise_total,
    round(sum(engage_nip)+sum(realise_nip)) eng_et_real_nip,
    round(sum(engage_autre)+ sum(realise_autre)) eng_et_real_autre,
    round(sum(engage_nip)+sum(engage_autre)+sum(realise_nip)+sum(realise_autre)) eng_et_real_total
    from
    select * from table(mypackage.reporting_tbordmarque_promo(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
    union
    select * from table(mypackage.reporting_tbordmarque_nip(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
    union
    select * from table(mypackage.reporting_tbordmarque_eng(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
    group by anneefiscale, marque, priorite, de
    ) a,
    select
    anneefiscale,
    marque,
    de,
    round(sum(engage_nip)+sum(engage_autre)+sum(realise_nip)+sum(realise_autre)) eng_et_real_total
    from
    select * from table(mypackage.reporting_tbordmarque_promo(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
    union
    select * from table(mypackage.reporting_tbordmarque_nip(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
    union
    select * from table(mypackage.reporting_tbordmarque_eng(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
    group by anneefiscale, marque, de
    ) b,
    select
    annee_fiscale.nom anneefiscale,
    marque.nom marque,
    de.nom de,
    round(sum(montant)) estime
    from
    estime,
    annee_fiscale,
    marque,
    enseigne,
    groupe,
    de,
    reseau
    where
    estime.id_annee_fiscale_fk = annee_fiscale.id_annee_fiscale and
    estime.id_marque_fk = marque.id_marque and
    estime.id_enseigne_fk = enseigne.id_enseigne and
    estime.id_type_estime_fk = :P50_TYPE_ESTIME and
    enseigne.id_groupe_fk = groupe.id_groupe and
    groupe.id_de_fk = de.id_de and
    de.id_reseau_fk = reseau.id_reseau and
    (:P50_ANNEE_FISCALE is NULL OR :P50_ANNEE_FISCALE=0 OR estime.id_annee_fiscale_fk = :P50_ANNEE_FISCALE) and
    (:P50_RESEAU is NULL OR :P50_RESEAU=0 OR reseau.id_reseau = :P50_RESEAU) and
    (:P50_DE is NULL OR :P50_DE=0 OR de.id_de = :P50_RESEAU)
    group by annee_fiscale.nom, marque.nom, de.nom
    ) c
    where
    a.marque=b.marque(+) and a.de=b.de(+) and
    a.marque=c.marque(+) and a.de=c.de(+)
    order by
    a.anneefiscale, a.marque, a.de;
    Edited by: user7499092 on 17 nov. 2012 05:50
    Edited by: user7499092 on 17 nov. 2012 05:50

    Hi Nikolay
    Concerning point 2, the database seems perfectly OK and I encountered an issue only with this query :-(
    The database is hosted on a dedicated server and I am the only one user. Moreover the issue is reproducible as I want... Very strange for me...
    I am very interested on a method to check waits and more precisely IO waits. Can you describe me a procedure ?
    The only one thing I can produce is the tkprof output focused on the fifth run that is very long...
    TKPROF: Release 11.2.0.1.0 - Development on Sat Nov 17 04:45:56 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Trace file: MYDB_ora_3493.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    select
    a.anneefiscale,
    a.marque,
    a.priorite,
    a.de,
    b.eng_et_real_total "eng et real annee moins 1",
    c.estime "estime",
    a.engage_nip "engage nip",
    a.engage_autre "engage autre",
    a.engage_total "engage total",
    a.realise_nip "realise nip",
    a.realise_autre "realise autre",
    a.realise_total "realise total",
    a.eng_et_real_nip "eng et real nip",
    a.eng_et_real_autre "eng et real autre",
    a.eng_et_real_total "eng et real total",
    decode(c.estime,0,NULL,round(a.eng_et_real_total/c.estime*100,1)) "pourcentage"
    from
      select
      anneefiscale,
      marque,
      priorite,
      de,
      round(sum(engage_nip)) engage_nip,
      round(sum(engage_autre)) engage_autre,
      round(sum(engage_nip)+sum(engage_autre)) engage_total,
      round(sum(realise_nip)) realise_nip,
      round(sum(realise_autre)) realise_autre,
      round(sum(realise_nip)+sum(realise_autre)) realise_total,
      round(sum(engage_nip)+sum(realise_nip)) eng_et_real_nip,
      round(sum(engage_autre)+ sum(realise_autre)) eng_et_real_autre,
      round(sum(engage_nip)+sum(engage_autre)+sum(realise_nip)+sum(realise_autre)) eng_et_real_total
      from
        select * from table(mypackage.reporting_tbordmarque_promo(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
        union
        select * from table(mypackage.reporting_tbordmarque_nip(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
        union
        select * from table(mypackage.reporting_tbordmarque_eng(:P50_RESEAU,:P50_DE,:P50_GROUPE,:P50_ANNEE_FISCALE))
      group by anneefiscale, marque, priorite, de
    ) a,
      select
      anneefiscale,
      marque,
      de,
      round(sum(engage_nip)+sum(engage_autre)+sum(realise_nip)+sum(realise_autre)) eng_et_real_total
      from
        select * from table(mypackage.reporting_tbordmarque_promo(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
        union
        select * from table(mypackage.reporting_tbordmarque_nip(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
        union
        select * from table(mypackage.reporting_tbordmarque_eng(:P50_RESEAU,:P50_DE,:P50_GROUPE,mypackage.get_previous_annee_fiscale(:P50_ANNEE_FISCALE)))
      group by anneefiscale, marque, de
    ) b,
      select
        annee_fiscale.nom anneefiscale,
        marque.nom marque,
        de.nom de,
        round(sum(montant)) estime
      from
        estime,
        annee_fiscale,
        marque,
        enseigne,
        groupe,
        de,
        reseau
      where
        estime.id_annee_fiscale_fk = annee_fiscale.id_annee_fiscale and
        estime.id_marque_fk = marque.id_marque and
        estime.id_enseigne_fk = enseigne.id_enseigne and
        estime.id_type_estime_fk = :P50_TYPE_ESTIME and
        enseigne.id_groupe_fk = groupe.id_groupe and
        groupe.id_de_fk = de.id_de and
        de.id_reseau_fk = reseau.id_reseau and
        (:P50_ANNEE_FISCALE is NULL OR :P50_ANNEE_FISCALE=0 OR estime.id_annee_fiscale_fk = :P50_ANNEE_FISCALE) and
        (:P50_RESEAU is NULL OR :P50_RESEAU=0 OR reseau.id_reseau = :P50_RESEAU) and
        (:P50_DE is NULL OR :P50_DE=0 OR de.id_de = :P50_RESEAU)
        group by annee_fiscale.nom, marque.nom, de.nom
    ) c
    where
      a.marque=b.marque(+) and a.de=b.de(+) and
      a.marque=c.marque(+) and a.de=c.de(+)
    order by
      a.anneefiscale, a.marque, a.de
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1     95.29     100.96          0       1215          0           0
    Fetch        3      0.27       0.39          0        246          0          19
    total        5     95.57     101.36          0       1461          0          19
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 66 
    Rows     Row Source Operation
         19  SORT ORDER BY (cr=55154 pr=0 pw=0 time=0 us cost=39985 size=175631625 card=60045)
         19   HASH JOIN RIGHT OUTER (cr=55154 pr=0 pw=0 time=234 us cost=3348 size=175631625 card=60045)
         19    VIEW  (cr=246 pr=0 pw=0 time=198 us cost=52 size=6233 card=23)
         19     HASH GROUP BY (cr=246 pr=0 pw=0 time=108 us cost=52 size=1932 card=23)
        230      HASH JOIN  (cr=246 pr=0 pw=0 time=801 us cost=51 size=1932 card=23)
        230       HASH JOIN  (cr=238 pr=0 pw=0 time=114 us cost=48 size=1633 card=23)
        230        HASH JOIN  (cr=230 pr=0 pw=0 time=1259 us cost=45 size=1265 card=23)
         28         NESTED LOOPS  (cr=8 pr=0 pw=0 time=999 us)
         28          NESTED LOOPS  (cr=7 pr=0 pw=0 time=135 us cost=8 size=297 card=9)
          4           NESTED LOOPS  (cr=5 pr=0 pw=0 time=39 us cost=5 size=75 card=3)
          1            TABLE ACCESS FULL DE (cr=3 pr=0 pw=0 time=0 us cost=4 size=18 card=1)
          4            TABLE ACCESS BY INDEX ROWID GROUPE (cr=2 pr=0 pw=0 time=33 us cost=1 size=49 card=7)
          4             INDEX RANGE SCAN GROUPE_DE_FK (cr=1 pr=0 pw=0 time=18 us cost=0 size=0 card=7)(object id 69080)
         28           INDEX RANGE SCAN ENSEIGNE_GROUPE_FK (cr=2 pr=0 pw=0 time=48 us cost=0 size=0 card=3)(object id 69079)
         28          TABLE ACCESS BY INDEX ROWID ENSEIGNE (cr=1 pr=0 pw=0 time=0 us cost=1 size=24 card=3)
        852         TABLE ACCESS FULL ESTIME (cr=222 pr=0 pw=0 time=1337 us cost=37 size=11638 card=529)
          7        VIEW  index$_join$_013 (cr=8 pr=0 pw=0 time=18 us cost=3 size=112 card=7)
          7         HASH JOIN  (cr=8 pr=0 pw=0 time=18 us)
          7          INDEX FAST FULL SCAN ANNEE_FISCALE_CON (cr=4 pr=0 pw=0 time=6 us cost=1 size=112 card=7)(object id 68294)
          7          INDEX FAST FULL SCAN ANNEE_FISCALE_PK (cr=4 pr=0 pw=0 time=6 us cost=1 size=112 card=7)(object id 68293)
         35       VIEW  index$_join$_014 (cr=8 pr=0 pw=0 time=340 us cost=3 size=455 card=35)
         35        HASH JOIN  (cr=8 pr=0 pw=0 time=272 us)
         35         INDEX FAST FULL SCAN MARQUE_PK (cr=4 pr=0 pw=0 time=0 us cost=1 size=455 card=35)(object id 68321)
         35         INDEX FAST FULL SCAN MARQUE_UK (cr=4 pr=0 pw=0 time=102 us cost=1 size=455 card=35)(object id 68322)
         19    HASH JOIN RIGHT OUTER (cr=54908 pr=0 pw=0 time=216 us cost=3295 size=159359430 card=60045)
         19     VIEW  (cr=28629 pr=0 pw=0 time=666 us cost=94 size=6640584 card=24504)
         19      HASH GROUP BY (cr=28629 pr=0 pw=0 time=504 us cost=94 size=7743264 card=24504)
         41       VIEW  (cr=28629 pr=0 pw=0 time=80 us cost=92 size=7743264 card=24504)
         41        SORT UNIQUE (cr=28629 pr=0 pw=0 time=40 us cost=92 size=49008 card=24504)
         42         UNION-ALL  (cr=28629 pr=0 pw=0 time=1066 us)
         11          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_PROMO (cr=13107 pr=0 pw=0 time=230 us cost=29 size=16336 card=8168)
         18          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_NIP (cr=14242 pr=0 pw=0 time=136 us cost=29 size=16336 card=8168)
         13          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_ENG (cr=1280 pr=0 pw=0 time=84 us cost=29 size=16336 card=8168)
         19     VIEW  (cr=26279 pr=0 pw=0 time=162 us cost=94 size=58393032 card=24504)
         19      HASH GROUP BY (cr=26279 pr=0 pw=0 time=36 us cost=94 size=56800272 card=24504)
         42       VIEW  (cr=26279 pr=0 pw=0 time=123 us cost=92 size=56800272 card=24504)
         42        SORT UNIQUE (cr=26279 pr=0 pw=0 time=82 us cost=92 size=49008 card=24504)
         42         UNION-ALL  (cr=26279 pr=0 pw=0 time=328 us)
         13          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_PROMO (cr=12209 pr=0 pw=0 time=72 us cost=29 size=16336 card=8168)
         19          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_NIP (cr=13006 pr=0 pw=0 time=108 us cost=29 size=16336 card=8168)
         10          COLLECTION ITERATOR PICKLER FETCH REPORTING_TBORDMARQUE_ENG (cr=1064 pr=0 pw=0 time=36 us cost=29 size=16336 card=8168)
    SQL ID: cb21bacyh3c7d
    Plan Hash: 3452538079
    select metadata
    from
    kopm$  where name='DB_FDO'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          2          0           1
    total        3      0.00       0.00          0          2          0           1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS   (recursive depth: 1)
    Rows     Row Source Operation
          1  TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=0 us cost=1 size=108 card=1)
          1   INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 553)
    etc etc etc etc etc
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1     95.29     100.96          0       1215          0           0
    Fetch        3      0.27       0.39          0        246          0          19
    total        5     95.57     101.36          0       1461          0          19
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       16      0.01       0.00          0          0          0           0
    Execute     23      0.02       0.03          1          5         26           2
    Fetch       33      0.67       0.74          0      54935          0        1447
    total       72      0.70       0.79          1      54940         26        1449
    Misses in library cache during parse: 2
    Misses in library cache during execute: 2
       13  user  SQL statements in session.
       11  internal SQL statements in session.
       24  SQL statements in session.
    Trace file: MYDB_ora_3493.trc
    Trace file compatibility: 11.1.0.7
    Sort options: default
           1  session in tracefile.
          13  user  SQL statements in trace file.
          11  internal SQL statements in trace file.
          24  SQL statements in trace file.
          12  unique SQL statements in trace file.
         485  lines in trace file.
         176  elapsed seconds in trace file.Edited by: easyoups on Nov 19, 2012 6:50 AM

  • "Translate" current system time into seconds.

    I actually have two doubts/questions:
    1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?
    2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.
    Thanks for you help!
    Solved!
    Go to Solution.

    magb321 wrote:
    I actually have two doubts/questions:
    1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?
    So your time is relative to midnight? I'm assuming you reset once you pass midnight? If so, you can use the Get Date/Time In Seconds and the Seconds to Date/Time to get a cluster that you can easily peel off:
    2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.
    The target computer will also need the LabVIEW Run-Time Engine (to run your app) and DAQmx (driver for the 6008) installed.
    Message Edited by smercurio_fc on 05-18-2010 11:34 PM
    Attachments:
    time.PNG ‏2 KB

  • Svchost.exe is accessing jp2iexp.dll hunderds of times per second

    I'm running Vista 64 and was trying to get rid of all the HD IO. So I ran sysinternals Process monitor and kicked the searchindexer.exe. But I also found that svchost.exe is accessing ...\jre6\bin\jp2iexp.dll hunderds of times per second. What is it doing? My JRE is 1.6.0_12-b04.

    tbeernot wrote:
    No. I have IE7, FF3, Safari4 and Chrome1 on my system and used them alternating for testing. In this case I indeed used IE to start process monitor.
    Are you suggesting that the svchost.exe is IE and it is reading the DLL? Question then still remains: why?No, certainly not.
    svchost is a required Windows process.
    I am guessing from the naming of the dll p2iexp.dll
        ^^ xp or vista
      ^^ ie; internet explorer
    ^^ p2; dunno, maybe plugin version 2 ?A quick Google ( [svchost.exe|http://www.google.com/search?q=svchost.exe] )
    gives a number of b0rked entries :-(
    and a number of what seems to be useful entries;
    [http://support.microsoft.com/kb/314056|http://support.microsoft.com/kb/314056]
    [http://www.howtogeek.com/howto/windows-vista/what-is-svchostexe-and-why-is-it-running/|http://www.howtogeek.com/howto/windows-vista/what-is-svchostexe-and-why-is-it-running/]
    [http://www.watchingthenet.com/how-to-identify-what-programs-started-svchostexe-in-windows.html|http://www.watchingthenet.com/how-to-identify-what-programs-started-svchostexe-in-windows.html]
    [http://ask-leo.com/svchost_and_svchostexe_crashs_cpu_maximization_viruses_exploits_and_more.html|http://ask-leo.com/svchost_and_svchostexe_crashs_cpu_maximization_viruses_exploits_and_more.html]
    [http://windowsxp.mvps.org/svchost.htm|http://windowsxp.mvps.org/svchost.htm]
    [http://www.processlibrary.com/directory/files/svchost/|http://www.processlibrary.com/directory/files/svchost/]

  • Updater runs each time I start Photoshop

    I'm using Photoshop CS2 and recently installed it on my new Vista system. During normal use, I log in to Windows as a non-administrator, as recommended for security purposes.
    Each time I launch Photoshop, it wants to check for updates, and asks for administrator privileges to do so. This is very annoying, first because I then have to enter my password for the admin account each time, and second because I don't need to check for updates every single time I run the program.
    I can instruct Windows to run photoshop.exe as an administrator each time it runs, which fixes the annoying problem of it checking for updates, but it still means I have to enter my administrator password each time I want to run Photoshop. Surely there is a good solution to this problem? I'd be happy if I could just instruct Photoshop once and for all to "do not check for updates". I have this option set and it seems to work when I run it as an administrator but when I run it as a non-privileged user, it still insists on checking for updates.
    Help?

    Turn off the updater.
    It's been notoriously buggy, and if you're currently up-to-date, you don't need it to be running. If you even sleepily pay attention to what's going on in the world of Adobe and Photoshop, you should become aware of updates when they become available.
    Better to go get and install them manually, rather than let your computer make that decision for you.

  • Running a function every second

    I have a function and I need to be able to run it once every second. Really appreciate any help.

    You can use a timer:new Timer (1000, new ActionListener () {
        public void actionPerformed (ActionEvent event) {
            yerMethod ();
    }).start ();Kind regards,
      Levi

  • Zenwsimp.log is huge, errors repeating many times per second

    Newly installed NW 5.1 SP6 server running ZFD 4.01 ir5 - I know, it's all
    old stuff, but it's the same as 6 or 8 other production servers we haven't
    had time to upgrade yet, and we didn't expect a new one would cause problems.
    After about a month of well-behaved operation, the server started to
    routinely hit 90%+ utilization every couple of days...
    Finally caught it red-handed - was the jave workstation import process
    thread owned 90% of all the systems threads. Killed that process, and the
    system settled right down.
    The TID's I've found say the error that is filling up the log, namely
    "Could not remove container attribute value.", is quote> innocuous <quote.
    Its the only error I've found in the huge log file so far, it is anything
    but innocuous. Repeating over and over 20 to 30 times per second.
    The zenwsimp.log file is nearly 1 GIG in size. The server was basically
    ignoring everything trying to update the giant log file.
    The tids also said to check the log for a workstation sending corrupt
    inventory information about the time the problem occurs. Just trying to
    read the log at the 1 gig file size is proving to be a challenge by itself.
    Typing it to the screen from a dos prompt is the only way I've been able
    to open it so far, at least with my 1GIG of RAM laptop system. Notepad and
    Write either error out or croak trying to load the log data. Typing it to
    the screen is the only way I've got to look at it, and after 15 minutes,
    it's still running, repeating nothing but that error message.
    I tweaked the startup ncf files to prevent the workstation import function
    from even loading until a solution can be found, rebooted the server, and
    all seems to be behaving since then. But after scouring the support site,
    I haven't seen anything to give me any other clues about what to do.
    Sure would appreciate some pointers or suggestions.

    On Sun, 10 Apr 2005 04:00:12 GMT, [email protected] wrote:
    > Sure would appreciate some pointers or suggestions
    delete the file... start import again wait for some errors.. unload
    import...
    why are your wks connecting to that server?
    Marcus Breiden
    Please change -- to - to mail me.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • Have a bash script run every time an application is opened.

    Hi,
    On my Arch box I would like to have a bash script run every time a certain application is opened from the menu. I would prefer a delay of a 5 - 10 seconds after the program opens if that is possible. Could someone please let me know if and how I can achieve this?

    Problem is, OP wants the "meat" of his script to run after the program, which would mean putting it after the exec. But AFAIK, anything after the exec will be ignored. You could call another script to run in the background before the exec, but that seems hackish.
    Last edited by alphaniner (2013-04-10 14:57:01)

  • [SOLVED] Running VirtualBox on a second XServer

    Hello,
    I am trying to run VirtualBox on a second XServer. I bascially just copy-cutted the method described in the Steam wiki, and I am getting errors.
    Basically I created two files, first vm.sh:
    #!/bin/bash
    VBoxManage startvm Windows
    And second x.vm.sh:
    #!/bin/bash
    DISPLAY=:1.0
    xinit $HOME/vm.sh $* -- :1
    When I run x.vm.sh from GNOME I get a black screen for a couple seconds and get back to desktop.
    This is the out put that I get:
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    X.Org X Server 1.7.1.901 (1.7.2 RC 1)
    Release Date: 2009-11-6
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.31-ARCH x86_64
    Current Operating System: Linux Computer 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:01:40 CET 2009 x86_64
    Kernel command line: root=/dev/disk/by-uuid/638b6309-2607-46ad-b560-49961f18c0a8 ro init=/sbin/bootchartd
    Build Date: 08 November 2009 04:08:18PM
    Current version of pixman: 0.16.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.1.log", Time: Sun Nov 15 13:14:54 2009
    (==) Using config file: "/etc/X11/xorg.conf"
    record: RECORD extension enabled at configure time.
    record: This extension is known to be broken, disabling extension now..
    record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
    VirtualBox Command Line Management Interface Version 3.1.0_BETA1
    (C) 2005-2009 Sun Microsystems, Inc.
    All rights reserved.
    Waiting for the remote session to open...
    Remote session has been successfully opened.
    waiting for X server to shut down
    And I am back to bash. VB is not running, second XServer is not running.
    When I execute the same file from a virtual terminal, same thing happens.
    Just starting a second xterm like this works fine:
    xinit -- :1
    But it comes with all the GNOME stuff, I want absolutely nothing of that. Just the VM GUI.
    Last edited by corsakh (2009-11-15 06:30:35)

    I changed to:
    #!/bin/bash
    DISPLAY=:1.0
    #xinit $HOME/vm.sh $* -- :1
    X :1 -ac -terminate &
    sleep 2
    VBoxManage startvm Windows
    Now I get a black screen on CTRL-ALT-F8 without a cursor and this out put:
    Waiting for the remote session to open...
    ERROR: Virtual machine 'Windows' has terminated unexpectedly during startup
    Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine, callee <NULL>
    Running xterm instead works totally fine:
    #!/bin/bash
    DISPLAY=:1.0
    #xinit $HOME/vm.sh $* -- :1
    X :1 -ac -terminate &
    sleep 2
    xterm
    Substituting VBoxManage line with $HOME/vm.sh gives the same error.
    Last edited by corsakh (2009-11-15 03:52:53)

  • My (2008) macbook pro, running 10.5.8 runs for about 30 seconds and then goes into deep sleep mode.  After significant difficulty awakening, it runs for 30 seconds and....start repeating here.  It did this once before about a year ago.

    .....and then goes into deep sleep mode.  When it (finally) awakens....it runs for about 30 seconds and.....start repeating here.
    And yes, I've shut dwn and restarted multiple times, rebooted in terminal mode and run fsck, rebooted and reset the parameter ram, yadda-yadda......
    Anybdy got any ideas?

    Power or other problems related to unexpected system sleep, shutdown, lights or fans call for an SMC reset. Read all the steps.
    Before Resetting the SMC
    Try each of the following steps in this order before you reset the SMC. Test the issue after completing each troubleshooting step to determine if the issue still occurs.
    Press Command + Option + Escape to force quit any application that is not responding.
    Put your Mac to sleep by choosing the Apple () menu from the upper-left menu bar and then choosing Sleep. Wake the computer after it has gone to sleep.
    Restart your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Restart.
    Shut down your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Shut Down.
    Resetting the SMC on Mac portables with a battery you can remove
    Shut down the computer.
    Disconnect the MagSafe power adapter from the computer, if it's connected.
    Remove the battery (to remove the battery - click here: MacBook or MacBook Pro).
    Press and hold the power button for 5 seconds.
    Release the power button.
    Reconnect the battery and MagSafe power adapter.
    Press the power button to turn on the computer.
    Still having problems? Replace steps 6 and 7 with the following:
    Reconnect just the MagSafe power adapter.
    Press the power button to turn on the computer,
    Then reconnect the battery.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if it's not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time. The power adapter indicator light may cycle off / on once.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • LaCie Quadra runs at times when not in use

    I am running Snowleopard with a Lacie quadra as a backup/clone external drive. I have noticed that every so often the drive just starts up and runs for about 10 seconds or so (either I hear it or I see the blue light flashing). I am not running a backup at this time or doing anything with the drive. I don't see any setting set to autobackup on the mac. I have tried reindexing it and still the same issue.
    Any help is greatly appreciated

    Do you turn the drive off using the switch at the back? If you leave it on and mounted, it will run occasionally when it detects something (I don't know what, but mine does the same thing).

  • Select query running long time

    Hi,
    DB version : 10g
    platform : sunos
    My select sql query running long time (more than 20hrs) .Still running .
    Is there any way to find sql query completion time approximately. (Pending time)
    Also is there any possibilities to increase the speed of sql query (already running) like adding hints.
    Please help me on this .
    Thanks

    Hi Sathish thanks for your reply,
    I have already checked in V$SESSION_LONGOPS .But it's showing TIME_REMAINING -->0
    select TOTALWORK,SOFAR,START_TIME,TIME_REMAINING from V$SESSION_LONGOPS where SID='10'
    TOTALWORK      SOFAR START_TIME      TIME_REMAINING
         1099759    1099759 27-JAN-11                    0Any idea ?
    Thanks.

  • In oneasset class i have created 2 assets by using of aso1 after that i acquired one asset for that i run the depreciation for first 5 periods, it has been showing depreciation for those period but if i am trying to run the depreciation for second asset i

    in on asset class i have created 2 assets by using of aso1 after that i acquired one asset for that i run the depreciation for first 5 periods, it has been showing depreciation for those period but if i am trying to run the depreciation for second asset it is not showing first 5 periods why it is not showing? Is there any reason?

    Hi
    Repeat run you can do only for the last depreciation period. For the asset which you are tryin to post depreciation from July to Jan, please check the asset value date which you have given while posting the transactions or in the asset master.
    If the asset value date is in July, then deprecaition from July - Jan will get posted in the current month depreciation in total. You will not be able to post depreciation individually month wise using AFAB.
    REgards
    Malathi

Maybe you are looking for

  • MR11.

    Hello, We have having open items in GR/IR account which have discripencies. now we need to clear this account using transaction MR11 and F.13. now the issue is the GR is being posted with Trading partner. but when we execute MR11 the accounting docum

  • Happy Mac Day To Me

    Happy Mac Day To Me!!! Its been 4 years since I brought home my G3 Graphite iMac. How time flys. I remember needing a computer. I had lost my job, my wife started working from home, and I was attending college part time. This meant the Gateway was no

  • 'Install App for SharePoint' There were errors when validating the App Package

    Hello, When testing with an app, I tried to add an app event receiver before learning that remote event receiver are not allowed with Sharepoint-hosted app. So I reseted the Handle app installed and Web Project properties of my project and tried to r

  • Oracle OLEDB PRovider with ASP

    hi, Can anyone provide me a piece of code which demonstrates how to call an Oracle sp from asp using the Oracle OLEDB provider. I would also appreciate if the Oracle package code could be provided too, since with the Provider we have to have a differ

  • Open target qty in quantity contract

    Hi Experts, I would like to create a report to display what is the open target qty of the contract. is there any report where we can see the target qty and open target qty. in which table I can find the open target quatity of the contract? Thanks Sri