Confusion about make Thread running(waiting online)

the code like this
class a implements Runnable{
public void run(){
while(true){};
class App {
public static void main(String arg[]){
a mya=new a();
(new Thread(mya)).start();
(new Thread(mya)).start();
the two thread will run simultaneously .
could u tell me what's the order and step the two thread become runnable and then run.
why the two thread could run simultaneously?
They are the same priority and one is busy enough not to let others to run.
but actually they did run simultaneously.
why one thread could become runnable state and then running automaticatically!

I can't really understand your problem, but i think it this here:
A runnable class should look like this:
class myThread implements Runnable {
Thread thisThread
myThread () {
thisThread = new Thread(this);
thisThread.start();
public void run () {
while (Thread.currentThread() == this) {
//Do anything
class App {
public static void main (String a[]) {
(new myThread).start();
(new myThread).start();
This program will generate two threads, and as it's the sense of threads the will run simultaneously.
if you call start() of a thread, this will start the thread and goto next line, while the tread calls his run().
But where is the problem????

Similar Messages

  • Confused about static thread safe.help me

    sample codes look like follows:
    public static class test
          public static method1(Object obj)
                //some operations  
    }my question is that is method1 is thread safe?

    Thread safety isn't about methods and it isn't about static. It's about being carefully about access to resources which may be accessed by more than one thread, and in particular may be changed by one thread and accessed by another.
    Local variables are always thread safe, and there's no problem about serveral threads executing the same block of code concurently.
    Thread safety is, in particular, about data items that are linked in some way so that there can be problems if one thread updates one piece of data on the basis of an out of date version of another.
    Databases are, generally, designed to cope with that kind of thing.

  • Problems about nonlinear least square( waiting online)

    This time I met a problem again,as you see when I set the parameters Amplitude=10000 or greater ,then the output will not turn out .
    Another problem is the derivative of the output on the waveform wobble after I click run for a while
    As a man you should be ....
    Attachments:
    ZQH_BYSJ.llb ‏330 KB

    Can you explain what you mean by wobble? (e.g. attach a picture)
    Your toplevel VI only runs once because there is no while loop. How do you run it "for a while" then? I pressed the run button 50 times, but nothing changed....
    If your amplitude is set to 10000, the function has a range of over 10^17, mostly because you take the fourth power. On that same scale, the influence of the lower order terms(a , b) now only contribute an infinitesimal small fraction to the signal (way beyond the scope of DBL or EXT) and thus can no longer be determined. Your problme is out of balance because the C and D completely dominate the result. As explained elsewhere, you need to keep your amplitude in a reasonable range and instead scale the fitting parameters.
    LabVIEW Champion . Do more with less code and in less time .

  • Question about DTR...Wait Online~~~~~~~~~

    In Netweaver2004S,I log on SLD as NWDI_ADM,when I create SC upon the System,From the SC details page of the SC created above, define usage dependencies,the Context is null.(the Was Server is 2004S SR2)
    IS the other SCs needed to develop CAF and GP applications in NWCE7.1?
    suah as
    DI BUILD TOOL 7.10
    J2EE ENGINE FACADE 7.10
    JAVA FRAMEWORK OFFLINE 7.10
    WEB DYNPRO RUNTIME 7.10
    Log on My NWCE7.1 (Trial Sp3) SLD page as Administration,I can see a lot of product.
    But on Netweaver2004S,as NWDI_ADM,there is only one that I just create in the system a few minute
    ago.
    In Develop Studio,I can create Develop configuration from the SLD,I can used it to create DC in version 7.0.
    But In the Develop Studio7.1CE, does not support the DC Type.
    if I want use the DTR form 2004S SR2,How can I fix it?

    HI
    You said
    IS the other SCs needed to develop CAF and GP applications in NWCE7.1?
    yes you need other many dependencies
    as CAF,CAF-MF,,,,
    check this url if you want to setup a track for CAF and GP development
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7014086d-3fd9-2910-80bd-be3417810c6f

  • I'm confused about sound on my iPad 2. I know it has speakers and it makes sounds for notifications, etc. But when I play the Time Warner TV app, there is no sound. Do I need to buy speakers or headphones?

    I'm confused about sound on my iPad 2. I know it has speakers and it makes sounds for notifications, etc. But when I play the Time Warner TV app, there is no sound. Do I need to buy speakers or headphones?

    Here is my situation, iPad 1 Time Warner app works fine with or without headphones, ipad2 I can unplug headphones and it works but when headphones are plugged in I can barely hear it even cranked up, my husbands ipad2 works fine with both so what that tells me is that there is something physically possibly programmed differently.  It really makes no sense.  I might just take my ipad2 back and swap it out.  It is weird all the other sound through the iPad comes through on headphones and speakers fine.  You are not alone with your time Warner app sound issues.

  • Confused about conversation grouping Lion vs. Snow Leopard

    Hello All,
    I just upgraded. Literally just finished. I was checking out mail, and I am confused about how Mail 5 groups messages for conversations. In SL I had Mail group related messages as well, and it's a feature I really enjoy. Conversations just makes it that much better. But, I notice that Lion groups message differently than both SL and iOS. Now, it is no longer grouping emails that are all from various people but are part of the same thread. It is grouping multiple messages from the same sender, even if they have nothing to do with each other, or are only loosely connected.
    It used to be (and still is on my iPhone) for example, that all the emails eminating from a single thread topic on one of my class forums would all group together. They have the same subject line and formatting. It was heaven. Will there be no way of doing this?
    Also, now all the emails from the teacher of that class, regardless of the relevancy or subject line, group together in one conversation. It's annoying in a way, but I think I can get used to that. Does anyone know if these will be able to be changed in the future?
    Thanks

    As a Mac power user - LION IS A DISAPPOINTMENT
    Apple needs to seriously consider briniging back
      • SPACES: the capability to move up as well as down to access applications
         AND have applications stay in a desgnated space makes it much easier
         to run multiple applicatioins - especially in a multi-monitor environment
      • SAVE AS: Saving various versions of a file is difficult with Lion. 
        If I want a 3 versions of a document - with different pictures, it takes too many "clicks" to accomplish
         this task.  LET ME CHOOSE HOW I STORE FILES
      • COPY COMMAND: Snow Leaopard allowed me to copy files to a storage device AND if the file
         was already written to the device - the option to NOT REPLACE the file existed.  This made it
         easy to backup work on a portable drive.
         LION ONLY has two options - copy all or make an addition copy of the file, causing storage bloat
    APPLE NEEDS TO SERIOUSLY CONSIDER PUTTING THESE FEATURES BACK INTO THEIR OS FOR THE BUSINESS AND POWER USER

  • Confused about cpu information here can you help plz

    if you look below at this link
    http://www.tigerdirect.com/applications/searchtools/item-details.asp?EdpNo=579850&Sku=CP1-P430008NC&SRCCODE=PRICEGRABBER
    Manufacturer Part No: BX80532PG3000D is right here but now look at this website below
    http://www.pricegrabber.com/search_getprod.php/masterid=779130/search=intel%2520pentium%25204/ut=c723210b9e568565
    the manufaturing number are the same but if you read the info on the first link it says 3.6Ghz and the seconed link says 3.0Ghz now is there a BIG (_*_) Mistake or are the company TigerDirect being too specific causing me to be insane lol huh ? Please help me I am trying to get a 3.2Ghz chip egzactley the same as in link 2 but 3.2Ghz not 3.0Ghz are they out yet?
    Please help Thank You very much :P

    I am so happy that I am an MSI guy here at this lovely forum I mean you all helped me so much and you did not have to but I do apreesheate it a lot from you guys I do know that I will be tossing plenty of money in to this chip but the reason why it so high at tigerdirect is because you are paying for there name brand and there product but I love shoping at there store because they are always polite there over the phone and I always get there best service there so I don't mind paying an extra few hundread dollors for there stuff.
    The reason for tossing so much money into this machine is no im not rich we or shall I say I am avrage I have a good job and still live with my parants so I have no utility bills to pay except insurance for my car every month but other then that I can save up quickley if I manage my money the right way hehe. But anywho I paid for the new from soyo SY-P4i875P Dragon2 Platinum Edition Motherboard capable of 3.02Ghz and will have a 3.00Ghz in it with HT   I bought it from http://www.Outpost.com/ witch I did love there service all around but if you pay by check be prepared to wait for 2 weeks lol god lee don't they know wow to torture there customers hehe so plz use money orders hehe but they sent it airborne express I belive thats what it is called correct me if im wrong. and that was quick hehe and also they make sure the person gets it too by having me sign for the package hehe I love how that works.
    I guess you guys are like havent he heard of paragraphs hehe:) Nope sure havent but since I went all out on video and sound I thought hey you know what why don't I dump this AMD and go for Intel pentium but before this desicion came around I was working on my Shuttle AK31 v3.1 and come to find out I ordered the wrong cpu when after I upgraded my bios to handle the xp2100+ cpu 1.73Ghz Thurobroud and was running the 1900+ 1.60Ghz Palimieo or what ever it was called but find out it would on;y run the paliminio chip so I was like well I don't want to overclock my board and put any stress on the board so I will put that 1900+ back in so I take my computer apart and go to take off the volcano 7+ fan made by thermaltake and requires a screwdriver flathead and a bit of skill in there words be carfull and use our product at your risk...lol
    anyways the scredriver sliped and broke off a micro transister and I was like oh crap and could had cryed for damaging my babie but I belive it was time to move on and that is why it hapened when it did hehe..
    but I called tigerdirect to get back on to the subject and told them what I was confused about and magell was his name I believe and he said yes it was a 3.00Ghz and the HT was what made it clock like a 3.06Ghz processor. So I was like wooo thats a relief and was so happy now I will order all of this below hope yo like my system hehe I know I will.
    http://www.tigerdirect.com/applications/SearchTools/item-details.asp?sku=C13-5100
    http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=471762&Sku=T925-1050&CatId=795
    http://www.cyberguys.com/templates/searchdetail.asp?T1=148+0070
    http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=579850&Sku=CP1-P430008NC
    Pricie hu I will have over 3 grand in my computer lol thats a lot for my hobby but the games are ausome let me tell ya I can't wait for half live 2 I think to come out and I love war games and sniper games like counter strike the graphics are grate
    Also I heard that intel is making a chip next year called the Xeron or somthin and will be 4.00Ghz with HT and the i874 and i8875 chip sets might not be compatible if they change there chip desighn could this also be true too has any one heard this or not? but I will let you go and give your eyes a rest but I thought I should thank yo both for your help and the link I do apreesheate it a lot and hope that everything runs smooth and fast You think?

  • RMI and Threads: Calling wait() on a remote object

    I created a counter as a remote object.
    Multiple clients are displaying the counter value.
    If one of the clients increments the counter, I want the displayed counter value on every client to be updated to the new value (of the counter on the server).
    Therefore every client starts a new thread to "listen" for changes of the countervalue. I wanted to call the wait() method on the remote object (the remote counter). But i think it will be called on the stub instead of on the actual remote object.
    Therefore i created a extra method waitForChange() on the remote object.
    public void waitForChange() throws RemoteException, InterruptedException {
         synchronized(this) {
              wait();
    This method only calls the wait() method. Now I'm sure it's called on the remote object and not on the stub.
    This works, but my question is: is there a better way to do this?
    Code:
    ==========================================
    The remote interface
    ==========================================
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface RemoteCounter extends Remote {
         void incrementCounter() throws RemoteException;
         int getCounterValue() throws RemoteException;
         void waitForChange() throws RemoteException, InterruptedException;
    } ==========================================
    The implementation of the remote interface
    ==========================================
    import java.rmi.*;
    import java.rmi.activation.*;
    import RemoteCounter;
    public class RemoteCounterImpl extends Activatable
         implements RemoteCounter {
         private static final long serialVersionUID = 1L;
         private int counter = 0;
         protected RemoteCounterImpl(ActivationID id, MarshalledObject data) throws RemoteException {
              super(id, 0);
         public void incrementCounter() throws RemoteException {
              synchronized(this) {
                   counter++;
                   notifyAll(); //Inform all clients of the new countervalue;
         public void waitForChange() throws RemoteException, InterruptedException {
              synchronized(this) {
                   wait();
         public int getCounterValue() throws RemoteException {
              return counter;
    }==========================================
    A piece of code registering the remote object
    ==========================================
    ActivationDesc desc = new ActivationDesc(agi, "RemoteCounterImpl", codebase, data);
    //Register with rmid
    RemoteCounter counter = (RemoteCounter)Activatable.register(desc);
    // Bind the stub to a name in the registry running on 1099
    Naming.bind("Counter", counter);==========================================
    The panel containing a button, a label
    which starts a new thread listening for
    counter value changes
    ==========================================
    import javax.swing.*;
    import java.awt.Dimension;
    import java.awt.event.*;
    import java.rmi.*;
    import org.personal.exam.services.RemoteCounter;
    public class PanelCounter extends JPanel {
         private static final long serialVersionUID = 1L;
         JLabel labelX = new JLabel("Press testbutton");
         Thread t;
         RemoteCounter remoteCounter;
         public PanelCounter()     {
              try {
                   jbInit();
              } catch(Exception e) {
                   e.printStackTrace();
         private void jbInit() throws Exception
              this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
              this.setPreferredSize(new Dimension(450,300));
              // The securityManager is required to make is possible
              // to download classes from the server
              if (System.getSecurityManager() == null) {
                   System.setSecurityManager(new RMISecurityManager());
              //Create a testButton to increment the counter          
              JButton testButton = new JButton("Increment");
              testButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent arg0) {
                        incrementCounter();
              this.add(testButton);
              //Add a label to display the counter value
              this.add(labelX);
              // Create thread to listen for counter value changes
              try {
                   remoteCounter = (RemoteCounter)Naming.lookup("Counter");
                   CounterValueChecker cvl = new CounterValueChecker(labelX, remoteCounter);
                   //Start a thread to listen for changes of the countervalue
                 t = new Thread(cvl);
                 t.start();
              } catch(Exception e) {
                   e.printStackTrace();
              this.setVisible(true);
         private void incrementCounter() {
              String message = "error";
              try {
                   remoteCounter.incrementCounter();
                   message = "Current value is " + remoteCounter.getCounterValue();
              } catch(Exception e) {
                   System.out.println("Test Exception: " + e.getMessage());
                   e.printStackTrace();
              labelX.setText(message);
    }==========================================
    The runnable implementation used by the
    thread to wait for counterchanges
    ==========================================
    import java.rmi.RemoteException;
    import javax.swing.JLabel;
    import org.apache.log4j.Logger;
    import RemoteCounter;
    public class CounterValueChecker implements Runnable {
         private JLabel counterLabel;
         private RemoteCounter remoteCounter;
         public boolean keepChecking= true;
         private Logger logger = Logger.getLogger(this.getClass());
         public CounterValueChecker(JLabel counterLabel, RemoteCounter remoteCounter){
              this.counterLabel = counterLabel;
              this.remoteCounter = remoteCounter;
         public void run() {
              while(keepChecking) {
                   int newVal = -1;
                   synchronized(remoteCounter) {
                        try {
                             //remoteCounter.wait();
    //this does not work. I think because the wait() method is called on the
    //stub instead of on the actual remote object
                             remoteCounter.waitForChange();
                        } catch (InterruptedException e) {
                             keepChecking = false;
                             break;
                        } catch (RemoteException re) {
                             re.printStackTrace();
                        try {
                             newVal = remoteCounter.getCounterValue();
                        } catch (RemoteException re) {
                             re.printStackTrace();
                        counterLabel.setText("New value: " + newVal);
    }This is just a little test. Actually I want to notify clients of changes in data displayed in a Table. If one client saves one record of the data, i want the new record to be displayed immediatly on all clients that are viewing the same data.

    I've been doing some reading about RMI and callback.
    As I understand it, there's a remote object is running on the client now as wel. And the server makes a call to the client.
    But now the server makes a call to one client.
    And the point is, I want all clients to be updated with the new value.
    Does this mean, I have to keep a list with references to all clients connected to the server?
    I my code the notifyAll() method causes all waiting Threads (running on several clients) to wake up and do something (getting the new counter value).

  • Why do threads run one at a time?

    [Newbie] Couldn't get help in another forum, so here goes. Tried this in Netbeans 3.5 then at home later in BlueJ, same thing. Thanks in advance!
    I have written a small application to play with threads. I create 3 instances of a class and shoot each one off in a thread, but they all seem to run one at a time, not at the same time. I have posted the code below. The output I expect is something like this:
    0T1
    0T2
    0T3
    1T1
    1T2
    1T3
    2T1
    2T2
    2T3
    498T1
    498T2
    498T3
    499T1
    499T2
    499T3
    500T1
    500T2
    500T3
    The T1 means threadstart1 wrote that line, the T3, means threadstart3 wrote the line, etc. I would expect to see these slightly out of order, too, knowing that the threads will process what they can, when they can. Instead, I see this:
    0T1
    1T1
    2T1
    500T1
    0T2
    1T2
    2T2
    500T2
    0T3
    1T3
    2T3
    500T3
    It's in perfect numeric order, each completing before the next starts. What am I doing wrong?
    //-------------dostuff.java
    package delme2;
    public class dostuff implements Runnable {
    private String mtext;
    public dostuff(String atext) {
    mtext = atext;
    public void run() {
    int j;
    String s;
    //display 500 numbers
    for (j=0; j<500; j++) {
    //build the string
    s = String.valueOf(j) + mtext;
    //show the string
    System.out.println(s);
    //wait a bit before doing this again.
    try {
    Thread.sleep(10);
    } catch (InterruptedException e) {
    //--------------- delme2.java
    package delme2;
    public class delme2 {
    public delme2() {
    System.out.println("Thread demo:");
    Runnable threadstart1 = new dostuff("T1");
    Runnable threadstart2 = new dostuff("T2");
    Runnable threadstart3 = new dostuff("T3");
    Thread t1 = new Thread( threadstart1 );
    Thread t2 = new Thread( threadstart2 );
    Thread t3 = new Thread( threadstart3 );
    t1.run();
    t2.run();
    t3.run();
    public static void main(String[] args) {
    delme2 mydelme2 = new delme2();
    }

    Okay, I'll play along. Having written a task scheduler in C (under tutorial, I admit), I think I qualify. A task scheduler has three jobs at all times.
    1) Execute the code at hand.
    2) Figure out when to stop executing the code at hand.
    3) When stopped, figure out what code to execute next.
    When executing a piece of code, there are different paradigms for determining when to stop and move on. Ideally, a cooperative multitasking system would have threads that relinquish timeslices or have some other method sprinkled throughout their code that indicates to the task scheduler that it's okay to move on to another piece of code. In my experience, that indicator is a Thread.Sleep() or equiavalent. when the thread.sleep() is encountered. The task scheduler has nothing to do for a whopping 10 MS. It could even take 15 or 20 ms if the next process in line takes that long. So what is it doing for 10 ms? It's not executing those other threads, which should be queued for their turn on step #3 as soon as I fire them off with a .run().
    Now, I hope you can see that I've given this some thought and read about it, but I'm missing something. I can get a very similar project to work as I expect it to in .NET and in Delphi. The Java environment has something different about it that I haven't figured out. Here's the c# code that does EXACTLY what I want it to. All threads run at a same time, and I get 0,0,0,1,1,1,2,2,2,3,3,3,4,4,4, etc.. See the similarities?
              private void button1_Click(object sender, System.EventArgs e)
                   lst.Items.Clear();
                   ThreadStart start1 = new ThreadStart(runner);
                   ThreadStart start2 = new ThreadStart(runner);
                   ThreadStart start3 = new ThreadStart(runner);
                   Thread t1 = new Thread(start1);
                   Thread t2 = new Thread(start2);
                   Thread t3 = new Thread(start3);
                   t1.Start();
                   t2.Start();
                   t3.Start();
              private void runner()
                   string s;
                   for (int j=0; j<500; j++)
                        s = j.ToString();
                        lst.Items.Add(s);
                        Thread.Sleep(10);
              }

  • Confused about transaction, checkpoint, normal recovery.

    After reading the documentation pdf, I start getting confused about it's description.
    Rephrased from the paragraph on the transaction pdf:
    "When database records are created, modified, or deleted, the modifications are represented in the BTree's leaf nodes. Beyond leaf node changes, database record modifications can also cause changes to other BTree nodes and structures"
    "if your writes are transaction-protected, then every time a transaction is committed the leaf nodes(and only leaf nodes) modified by that transaction are written to JE logfiles on disk."
    "Normal recovery, then is the process of recreating the entire BTree from the information available in the leaf nodes."
    According to the above description, I have following concerns:
    1. if I open a new environment and db, insert/modify/delete several million records, and without reopen the environment, then normal recovery is not run. That means, so far, the BTree is not complete? Will that affact the query efficiency? Or even worse, will that output incorrect results?
    2. if my above thinking is correct, then every time I finish commiting transactions, I need to let the checkpoint to run in order to recreate the whole BTree. If my above thinking is not correct, then, that means that, I don't need to care about anything, just call transaction.commit(), or db.sync(), and let je to care about all the details.(I hope this is true :>)
    michael.

    http://www.oracle.com/technology/documentation/berkeley-db/je/TransactionGettingStarted/chkpoint.html
    Checkpoints are normally performed by the checkpointer background thread, which is always running. Like all background threads, it is managed using the je.properties file. Currently, the only checkpointer property that you may want to manage is je.checkpointer.bytesInterval. This property identifies how much JE's log files can grow before a checkpoint is run. Its value is specified in bytes. Decreasing this value causes the checkpointer thread to run checkpoints more frequently. This will improve the time that it takes to run recovery, but it also increases the system resources (notably, I/O) required by JE.
    """

  • Confused about standby redo log groups

    hi masters,
    i am little bit confuse about creating redo log group for standby database,as per document number of standby redo group depends on following equation.
    (maximum number of logfiles for each thread + 1) * maximum number of threads
    but i dont know where to fing threads? actually i would like to know about thread in deep.
    how to find current thread?
    thanks and regards
    VD

    is it really possible that we can install standby and primary on same host??
    yes its possible and i have done it many times within the same machine.
    For yours confusion about spfile ,i agree document recommend you to use spfile which is for DG broker handling if you go with DG borker in future only.
    There is no concern spfile using is an integral step for primary and standby database implementation you can go with pfile but good is use spfile.Anyhow you always keep pfile on that basis you created spfile,i said you make an entry within pfile then mount yours standby database with this pfile or you can create spfile from this pfile after adding these parameter within pfile,i said cause you might be adding this parmeter from SQL prompt.
    1. logs are not getting transfered(even i configure listener using net manager)
    2.logs are not getting archived at standby diectory.
    3.'ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION' NEVER COMPLETE ITS RECOVERY
    4. when tried to open database it always note it 'always' said system datafile is not from sufficiently old backup.
    5.i tried 'alter database recover managed standby database camncel' also.Read yours alert log file and paste the latest log here..
    Khurram

  • PSE 7 confusion about folder location, help needed

    Here's some background: I'm using PhotoShop Elements 7 on Win XP.  I have an external firewire hard drive I use for overflow/backups.  Originally, this showed up as a K: drive on my system.
    I added a RAID controller and two more drives to stripe as a single drive for temp space rendering movies.  This ended up as a K: drive and the external moved to L:  However, when I did this there were some pictures from my catalog that I had on the external drive.  I have used File > reconnect missing files to handle the moves, but PSE is still confused (very).
    PSE has started to mix up the RAID (K:) and external (L:) content.  If I move a set of pictures (e.g. a folder of them) onto the external drive (L:) via drag and drop in the folder location view, the folder will show up empty on the L: heirarchy, but will show up as a gray folder icon in the K: RAID drive hierarchy.  If I open up windows explorer, the RAID drive will appear empty.  In other cases (I'm not sure when/how yet), pictures physically end up on the RAID drive itself instead of the external.  I have uninstalled both the external drive and the RAID drive and reinstalled them both, but they are still getting confused in the folder view by PSE.  I've also tried moving content outside of PSE and just reconnecting missing files, but it still wants to put things under the K: RAID drive instead of the external L:.
    I've searched everywhere I can think of for a description of what gray folder icons in the folder location view means and can find none.  I'm not sure how to convince PSE that there's nothing on the RAID K: drive and it shouldn't try to connect the two.  Any suggestions?
    Thanks,
    Jim

    Thank you!  I ran psedbtool and the output shows the catalog has the wrong drive letter for the L: drive.
    Is there a way to make PSE forget about the K: and L: drives that it is so confused about so that it can relearn of their existence?  If I use the drive letter reassignment to fix PSE, it will break other apps that are now dependent on the current drive letter assignments.  I've tried removing all files from the L: drive, but it's still remembered as part of the catalog.
    Thanks,
    Jim
    psedbtool version 1.07
    Opening catalog C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\Catalogs\Moms pics\catalog.pse7db
    Photoshop Elements version:      7
    Total files               :   4833
    Total files missing       :      0
    Total files offline       :    278
    Total files wrong volume  :      0
    ****** Volumes with warnings: 1
    PSE Volume Table
    Path used by PSE        : F:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : MEDIA
    Serial                  : 1C2F-9805
    Drive_path_if_builtin   : F:
    Id                      : 32520
    Path used by PSE        : M:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 938
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : FreeAgent Drive
    Serial                  : 7830-2970
    Drive_path_if_builtin   : M:
    Id                      : 93626
    Path used by PSE        : E:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : GAMES
    Serial                  : 025A-4B70
    Drive_path_if_builtin   : E:
    Id                      : 93625
    Path used by PSE        : L:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 114
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : FreeAgent Drive
    Serial                  : 60AE-A816
    Drive_path_if_builtin   : K:
    Id                      : 31354
    ***** WARNING *****     : Wrong drive letter in catalog
    Path used by PSE        : \\dmzhost\media
    Type                    : network_drive
    Status                  : offline
    Total files             : 278
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : //dmzhost/media
    Serial                  : //dmzhost/media
    Drive_path_if_builtin   :
    Id                      : 26948
    Path used by PSE        : J:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 3503
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : MEDIA2
    Serial                  : BAC0-B5A3
    Drive_path_if_builtin   : J:
    Id                      : 108
    Path used by PSE        : C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\Catalogs\Moms pics
    Type                    : database_relative_drive
    Status                  : online
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : database relative
    Serial                  : amoc:database_relative_volume
    Drive_path_if_builtin   :
    Id                      : 2
    Windows Drives
    Drive  Type             Serial     Path
    A:     removable_drive  0000-0000 
    C:     builtin_drive    9088-07F9 
    D:     builtin_drive    F408-1CB0 
    E:     builtin_drive    025A-4B70 
    F:     builtin_drive    1C2F-9805 
    G:     builtin_drive    242D-15ED 
    H:     readonly_drive   0000-0000 
    I:     builtin_drive    427D-3F6B 
    J:     builtin_drive    BAC0-B5A3 
    K:     builtin_drive    64E8-9846 
    L:     builtin_drive    60AE-A816 
    M:     builtin_drive    7830-2970
    Thanks so much for your help!
    Jim

  • The sample rate in my code is too low. Is there a way to make it run faster?

    Dear Sir,
        I am a LabVIEW customer, and just have a question about LabVIEW.
        We are running a code of "Wirebonder Project", but find the sample rate is too low. I'm wondering if there is a way to make it run faster. (I have
    attached the code here.)
        Thank you very much!
    Yours Sincerely,
    Xian Zhang
    Attachments:
    Wirebonder_Project_Code.zip ‏169 KB

    Hi Xian,
    What system are you running this code on and are you using the LabVIEW Real-Time Module? There is a presentation online on Optimizing and Benchmarking Real-Time code with useful related links as well as other articles in the DevZone on things like Benchmarking an Application Using LabVIW Real-Time and DAQmx.
    As you can see, this is not a simple question, so take a look at the information in these links and see if you can narrow down what in your code is running slowly and how much you might be able to improve the speed.
    Regards,Stephen S.
    National Instruments
    Applications Engineering

  • The problem about multi-thread in java application

    i have problem with the multi-thread in java application, i don't know how to stop and restart a thread safely, because the function thread.stop(),thread.suspend() are both deprecated.
    now what i can only do is making the thread check a flag(true or false) to determine whether to start or to stop, but i think this thread will always be in the memory and maybe it will lower the performance of the system, as the program i am developping is working under realtime enviorement.
    please help me about it. thanks !

    hi,
    you can stop a thread by exiting it's run()-method which in terms can be done by checking the interrupted-flag:
    public void run(){
    while(interrupted()){ //if the thread consists of a loop
    or
    public void run(){
    if(interrupted())return;
    if(interrupted())return;
    or by the use of the return-statement anywhere withing the run-method. Afterwards, that is when the thread is no longer needed, you clear all the references to the specific thread object by setting them to null:
    Thread t;
    ... //working
    t.interrupt(); //interrupting
    while(t.isAlive()){
    Thread.yield(); //wait till thread t has stopped
    t=null;
    best regards, Michael

  • Oracle Linux 6.3 and Oracle VM 3.0.3 : high "os thread startup" waits

    Hi all,
    we just installed Oracle Linux 6.3 as a PVM guest with Oracle VM 3.0.3.
    The vm is acting as a dbserver.
    We see high "os thread startup" wait times from statspack report. A 10-hour report shows:
    Top 5 Timed Events Avg %Total
    ~~~~~~~~~~~~~~~~~~ wait Call
    Event Waits Time (s) (ms) Time
    CPU time 13,819 57.5
    db file sequential read 1,839,279 5,791 3 24.1
    enq: TX - row lock contention 1 664 ###### 2.8
    os thread startup 1,350 451 334 1.9
    control file sequential read 166,312 386 2 1.6
    This seems to be an OS or virtualization issue: if i run some very simple commands like "ls " or "top", sometimes I see them hangig some seconds .
    What should I check for ?
    Thanks,
    Andrea

    This will sound silly, but: Make sure you aren't a victim of the "Some Linux machines have high CPU utilization after Leap Second insertion on July 1st". If your server was "doing NTP", this might have happened. You can google this, if you didn't hear of it. A reboot makes it go away.

Maybe you are looking for

  • HT5058 Syncing Exchange Account in iCal with iCloud

    I have successfully added an Exchange account calendar to my iCal. Problem is I can't get my Exchange calendar to sync with iCloud. How do I get my Exchange account calendar to sync with iCloud since they appear in different sections? Thank you.

  • CRM Survey Extraction to BW

    Hello, I have created a questionnaire under marketing in the survey tool in crm (crm_survey_suite tcode). Now i have activated and generated a URL for this and embeded this URL in my mail form. Also I have selected the option "Evaluation in Business

  • Personas - Export / Import and missing icons

    Morning all. Have many of you used the import  / export feature to move flavours between clients? I have used it successfully in the past but the now have an issue. I have 4 flavours and a bunch of media files, many of which are shared amongst the fl

  • In what table the trasaction codes has been stored?

    Can anybody please tell me that in which table the Transaction Codes are being stored? Regards, Subhasish

  • Problem in updating first column header in JTable

    hi I am using JTable in my application. I want to change first column name of JTable every time when a JList is selected. I am using DefaultTableModel for JTable. I added first column in Constructor and another in a method. I have to edit only first