Thread Running negative number of time.

Hi All,
I wrote a program to check the effects of Thread priority, however to my surprise the output is weired the higher priority thread shows that it run negative number of time, below is the code.
package javaProg.completeReferance;
class Clicker implements Runnable
     Thread t;
     int click;
     volatile boolean  running = true;
     public Clicker(int pro)
          t=new Thread(this);
          click = 0;
          t.setPriority(pro);
     public void run()
          while (running)
               click++;
     public void start()
          t.start();
     public void stop()
          running=false;
public class TestClicker
     public static void main(String [] args)
          Clicker thread1 = new Clicker(Thread.NORM_PRIORITY+2);
          Clicker thread2= new Clicker(Thread.NORM_PRIORITY-2);
          thread1.start();
          thread2.start();
          System.out.println("Processing");
          try
               Thread.sleep(10000);
          catch (InterruptedException i)
               System.out.println(i);
          thread1.stop();
          thread2.stop();
          try
               thread1.t.join();
               thread2.t.join();
          catch (InterruptedException i)
               System.out.println(i);
          System.out.println("The number of Time Thread1 executed is "+thread1.click);
          System.out.println("The number of time Thread2 executed is "+thread2.click);
}Here is the Output..
C:\Users\pravin>java javaProg.completeReferance.TestClicker
Processing
The number of Time Thread1 executed is -386946835
The number of time Thread2 executed is 837375311Thanks!!

Thanks a lot , I changed int click to long and its
working fine.I am wondering why the Java Platform
didnt throw an error or exception for overflow.Because the Java specification calls for it not to do that but instead to do what you saw and rollover.

Similar Messages

  • 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);
              }

  • Is it possible to have 2 threads running at the same time?

    Is it possible to have 2 threads running at the same time at different times eg 1 repeats every 20 miliseconds and the other 40 for example. Also could you have 2 run() methods in one script, in one file? If so how? Help soon would be appreciated. Thanks.

    Is it possible to have 2 threads running at the same
    time at different times eg 1 repeats every 20
    miliseconds and the other 40 for example. Yes.
    http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html

  • Is it bad to have the fan running loud all the time

    the fan on my macbook runs loud and long at times. is this bad for the machine?

    Is it possible to have 2 threads running at the same
    time at different times eg 1 repeats every 20
    miliseconds and the other 40 for example. Yes.
    http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html

  • How many threads can be running at the same time

    Hi!!
    Dows anyone knows how many Threads can be running at the same time in the JVM.
    I'm making a multi thread client-server app and I would like to know how much simultneous connections the JVM support. I'm using one Thread per connection.

    Hi, thanks to all for your answers.
    I think that I made the wrong question, as you said: "that means the number of threads currently created".
    I'm worry about this because my application is already online (It's a mail server -SMTP and POP3 server using ORACLE for the users database- ) and some other user post in the "multi-tread forum" that almost any JVM can only have 700 threads created at the same time, and I've never heard or read anything about this.
    what you mean with the stack space (memory??)
    I'm using the JavaWebServer 2.0 and a servlet to start the main Thread.
    Again Thanks to all for the answers but I think that the schapel answer is the one that solve my doubt...

  • Is there any way to limit the number of Threads running in Application(JVM)

    Hello all,
    is there any way to limit the number of Threads running in Application(JVM)?
    how to ensure that only 100 Threads are running in an Application?
    Thanks
    Mohamed Javeed

    You should definitely use a thread pool for this. You can specify maximum number of threads that can be run. Be note that the thread pool will only limit the number of threads that are submitted to it. So donot call "Thread"s start() method to start thread on your own. Submit it to the pool. To know more, study about executor service and thread pool creation. Actually it will not be more than 20 line code for a class and you might need maximum of 2 such classes, one for threadPool and other one for rejection handler (if you want).
    Just choose the queue used carefully, you just have to pass it as a parameter to the pool.
    You should use "Bounded" queue for limiting threads, but also be careful in using queues like SynchronizedQueue as the queue will execute immediately the threads submitted to it if maximum number of threads have not been running. Otherwise it will reject it and you should use rejection handler. So if your pool has a synchronized queue of size 100, if you submit 101th thread, it will be rejected and is not executed.
    If you want some kind of waiting mechanism, use something like LinkedBlockingQueue. What this will do is even if you want 100 threads, you can specify the queue's size to be 1000, so that you can submit 1000 threads, only 100 will run at a time and the remaining will wait in the queue. They will be executed when each thread already executing will complete. Rejection occurs only when the queue oveflows.

  • I have Lightroom 3 and have installed it on my Retina iMac running Yosemite. It will not show me any of the modules..error when attempting to change modules.. and keeps asking for my serial number every time. Is it compatible?

    I have Lightroom 3 and have installed it on my Retina iMac running Yosemite. It will not show me any of the modules..error when attempting to change modules.. and keeps asking for my serial number every time. Is it compatible?
    David

    This is a duplicate thread - see here

  • Running a class a particular number of times

    hey
    can some pls tell me how to run this class a specific number of times. maybe by using a for loop?.
    i am making a game called memory game where u match the cards which are thw same. i want to make this a multiplayer game rather than a single player game. Thus in order to do this i need to be able to run the class (shown below) a specific number of times.
    i have an array called "players" which is a length of 5. and if the user enter the names into all five elements or there are 5 players then i need the program to run 5 times. else if the user only entered a name in two elements then i need the class "MemoryMatch" to run twice .
    i know how to determine whether the user entered 5 names or a single by using if statements. but i dont kno how to make the class "MemoryGame" run a specific number of times.
    .. .and for the game i calculate the score of the user by finding the amount of time it takes the user to finish the game and then subtract the time they took from a base value of 500points. i then put the time difference into an array called "timez" i also want the class to add the time to array "timez" at the end after the one of the players has finished the game or the class is run.
    here is the code for the "MemoryMatch" class which i need to run a specific number of times.
    class MyButton extends JButton
            long startTime = System.currentTimeMillis ();
            int index;
            ImageIcon icon;
            public MyButton (ImageIcon img, int i)
                icon = img;
                index = i;
                setPreferredSize (new Dimension (100, 100));
                addActionListener (new ActionListener ()
                    public void actionPerformed (ActionEvent actionEvent)
                        // 1
                        /* Create and add a prompt and then a text field */
                        if (getIcon () == null)
                            setIcon (icon);
                            if (buttonShowingIndex > -1)
                                if (icon != button [buttonShowingIndex].getIcon ())
                                    final int bsi = buttonShowingIndex;
                                    ActionListener al = new ActionListener ()
                                        public void actionPerformed (ActionEvent actionEvent)
                                            MyButton.this.setIcon (null);
                                            button [bsi].setIcon (null);
                                    javax.swing.Timer timer = new javax.swing.Timer (450, al);
                                    timer.setRepeats (false);
                                    timer.start ();
                                buttonShowingIndex = -1;
                            else
                                buttonShowingIndex = index;
                            //time calculation
                            long endTime = System.currentTimeMillis ();
                            long difference = ((endTime - startTime) / 1000) + 2;
                            timez [0] = difference;
        }so ...basically the two things i would like to get are
    1. make the class "MemoryMatch" run a specific number of times
    2. Put the time difference(time it takes user to finish game) into the array "timez" (but i think i got that handled but still if u knew a more efficient way... that would be nice =) )
    thanks alot

    hey man,
    thanks for taking the trouble for helping me.
    i have put the whole part of my program below. what u mentioned earlier was part right. the "MyButton" class flips over the two cards which were clicked by the user and then if they are right it leaves the cards on the table with the pics. and if they are wrong then the pics dissppear and the user has to choose two more cards again.
    the "players" array is an array which contains the names of the people who are playing the game. i get those values from another class called "Score" and then i transfer the array to the "MemoryMatch" class.
    ..and for the points i was thinking that i would find the time required by the user to finish the game and subtract the time in seconds from a base value of 500.
    hope this helps.
    thanks
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    class MemoryMatch extends JFrame
        MyButton[] button = new MyButton [36];
        ImageIcon[] icons = new ImageIcon [button.length];
        int buttonShowingIndex = -1;
        int time = 0;
        long startTime, endTime;
        static int gamesRun;
        static boolean runs;
        JPanel contentPanel;
        JPanel mainPanel;
        JLabel text;
        JTextField grade1;
        long[] timez = new long [5];
        static String[] players = {"", "", "", "", ""};
        //delay method
        public static void delay (int num)
            try
                Thread.sleep (num);
            catch (InterruptedException e)
        public MemoryMatch ()
            icons [0] = new ImageIcon (getClass ().getResource ("image1.gif"));
            icons [1] = new ImageIcon (getClass ().getResource ("image2.gif"));
            icons [2] = new ImageIcon (getClass ().getResource ("image3.gif"));
            icons [3] = new ImageIcon (getClass ().getResource ("image4.gif"));
            icons [4] = new ImageIcon (getClass ().getResource ("image5.gif"));
            icons [5] = new ImageIcon (getClass ().getResource ("image6.gif"));
            icons [6] = new ImageIcon (getClass ().getResource ("image7.gif"));
            icons [7] = new ImageIcon (getClass ().getResource ("image8.gif"));
            icons [8] = new ImageIcon (getClass ().getResource ("image9.gif"));
            icons [9] = new ImageIcon (getClass ().getResource ("image10.gif"));
            icons [10] = new ImageIcon (getClass ().getResource ("image11.gif"));
            icons [11] = new ImageIcon (getClass ().getResource ("image12.gif"));
            icons [12] = new ImageIcon (getClass ().getResource ("image13.gif"));
            icons [13] = new ImageIcon (getClass ().getResource ("image14.gif"));
            icons [14] = new ImageIcon (getClass ().getResource ("image15.gif"));
            icons [15] = new ImageIcon (getClass ().getResource ("image16.gif"));
            icons [16] = new ImageIcon (getClass ().getResource ("image17.gif"));
            icons [17] = new ImageIcon (getClass ().getResource ("image18.gif"));
            icons [18] = icons [0];
            icons [19] = icons [1];
            icons [20] = icons [2];
            icons [21] = icons [3];
            icons [22] = icons [4];
            icons [23] = icons [5];
            icons [24] = icons [6];
            icons [25] = icons [7];
            icons [26] = icons [8];
            icons [27] = icons [9];
            icons [28] = icons [10];
            icons [29] = icons [11];
            icons [30] = icons [12];
            icons [31] = icons [13];
            icons [32] = icons [14];
            icons [33] = icons [15];
            icons [34] = icons [16];
            icons [35] = icons [17];
                    Collections.shuffle (Arrays.asList (icons));
            setDefaultCloseOperation (EXIT_ON_CLOSE);
            contentPanel = new JPanel ();
            contentPanel.setBorder (BorderFactory.createEmptyBorder (500, 500, 10, 10));
            mainPanel = new JPanel ();
            mainPanel.setBorder (BorderFactory.createEmptyBorder (500, 500, 10, 10));
            mainPanel.setBackground (Color.white);
            mainPanel.setLayout (new GridLayout (6, 6));
            for (int x = 0 ; x < button.length ; x++)
                button [x] = new MyButton (icons [x], x);
                mainPanel.add (button [x]);
            getContentPane ().add (mainPanel);
            pack ();
        public static int pushPlayers (String[] p)
            players = p;
            int game = 5;
            if (players [0].equals (""))
                game = game - 1;
            if (players [1].equals (""))
                game = game - 1;
            if (players [2].equals (""))
                game = game - 1;
            if (players [3].equals (""))
                game = game - 1;
            if (players [4].equals (""))
                game = game - 1;
            System.out.println (game);
            gamesRun = game;
            return game;
        class MyButton extends JButton
            long startTime = System.currentTimeMillis ();
            int index;
            ImageIcon icon;
            // for (int i = 0 ; i < gamesRun ; i++)
            public MyButton (ImageIcon img, int i)
                icon = img;
                index = i;
                setPreferredSize (new Dimension (100, 100));
                addActionListener (new ActionListener ()
                    public void actionPerformed (ActionEvent actionEvent)
                        // 1
                        /* Create and add a prompt and then a text field */
                        if (getIcon () == null)
                            setIcon (icon);
                            if (buttonShowingIndex > -1)
                                if (icon != button [buttonShowingIndex].getIcon ())
                                    final int bsi = buttonShowingIndex;
                                    ActionListener al = new ActionListener ()
                                        public void actionPerformed (ActionEvent actionEvent)
                                            MyButton.this.setIcon (null);
                                            button [bsi].setIcon (null);
                                    javax.swing.Timer timer = new javax.swing.Timer (450, al);
                                    timer.setRepeats (false);
                                    timer.start ();
                                buttonShowingIndex = -1;
                            else
                                buttonShowingIndex = index;
                            //time calculation
                            long endTime = System.currentTimeMillis ();
                            long difference = ((endTime - startTime) / 1000);
                            timez [0] = difference;
        public static void main (String[] args)
            // JFrame.setDefaultLookAndFeelDecorated (true);
            // Score myGrades = new Score (myMemoryMatch);
            // //Score
            delay (5000);
            MemoryMatch myMemoryMatch = new MemoryMatch ();
            //running of main game
            myMemoryMatch.setVisible (true);
            //transferring to the array
            for (int i = 0 ; i < myMemoryMatch.players.length ; i++)
                // show that the variable has been updated here
                players = myMemoryMatch.players [i];
    for (int i = 0 ; i < myMemoryMatch.players.length ; i++)
    // show that the variable has been updated here
    System.out.println (players [i]);

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • Is there a way to count the number of times an array moves from positive to negative?

    I have an array of values, and I need to find the number of times that the array changes signs (from positive to negative, or vice versa). In other words from a graphical standpoint, how many times a certain line crosses the x-axis. Counting the number of times the array equals zero does not help however, because the array does not always equal exactly zero when it crosses the axis (ie, the points could move from .1 to -.1).
    Thanks for you help. Feel free to email me at [email protected] I only have lv 5.1.1 so if you attach any files, they cannot be version 6.0.

    Attached is a VI showing the # of Pos and Neg numbers in an array, with 0 considered as non-Pos. It is easily modifiable to other parameters - including using the X-axis value as your compare point versus only Zero.
    This is a modified VI from LV (Separate Array.vi)
    Compare this with your other responses to find the best fit.
    Doug
    Attachments:
    arraysizesposneg.vi ‏40 KB

  • Java threads. Are they running at the same time?

    Hello everybody. I am implementing a multiagent system in java and at some point in the program i need a specific function (from a specific class) to run at the same time in several "copies". Those functions are communicating with each other with some messages, so as you can understand not running at the same time is a big problem because of this messages.
    Below i am giving you an example of the code i am using. I would like your opinion whether those functions are running parallel or serial. If they are not running parallel what should i do? Any opinion or something that can help me would be perfect. Thanks in advance.
    //my class
    public class Agent extends Thread {
                           public void MinConflicts(Agent array[],int max_moves){//code in here}
    public static void main(String[] args) throws IOException {
                  Agent[] fbi = new Agent[num] //num is inserted by the user
                 //code here
                 for(i=0;i<num;i++){
                         fbi.start(); //starting the treads
    for(i=0;i<num;i++){
    fbi[i].MinConflicts(fbi,max_moves); //running the function that i want to run parallel
    //code here also :)

    What you appear to be doing here is creating an array of Thread references (which I hope at some point gets populated with actual Thread object references!)......because your first loop is wanting to cycle through each array slot starting the referenced Thread. Then the next loop iterates through the array again, this time calling the method for each Thread object.
    Assuming that you do populate the array, what this code will do is start each Thread which, I believe, will start and immediately terminate because run() has not been over-ridden. The second loop winds up calling the method for each Thread in the array. You are actually calling it from the main thread though. So, as previously advised, I think that you will run each method sequentially.
    The direction that I would head with this is to override run() in your agent Thread and have that run() method call the MiniConflicts() method. Then, in your main routine you can do away with the second for loop. The looping start will start all of the individual threads and they will execute the run() method......which in essence will be executing your MiniConflicts method.
    This reply is NOT a total design... I am sure that there are holes to be filled... but I think that will get you headed in the right direction.

  • "I am constantly getting a message which says Itunes cannot run because some of it's required files are missing.  Please reinstall iTunes."  I've reinstalled a number of times and re-booted but it only seems to last a short time.  How do I fix it?

    I am constantly getting a message which says "iTunes cannot run because some of it's required files are missing.  Please reinstall iTunes."  I've reinstalled a number of times and re-booted but it only seems to last a short time.  How do I fix it?

    HI daddio,
    Ok some things first I need to know...Did you use Microsoft cleanup utility to clean up all those uninstalls you have done?
    I hate Norton and anyone who reads my posts will know that. I have seen way too many infected PC's by Norton users. Did you try the EWIDO and AdAware scan? I see you said you read lots of posts. That is helping folks remove the malware in order to get iTunes and quicktime back to health.

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to calculate number of threads  running  on Windows 2000 terminal?

    How to calculate number of threads running on Windows 2000 terminal for the oracle process?
    I have installed Oracle 9i DataBase with 6 patch(9.2.0.6.0) on Windows 2000 Terminal.
    But,after database is started up, when i check up the sessions in v$session view.
    It is showing like for SYSTEM osuser alone, 10 ORACLE.EXE sessions running on this server machine in active state.
    Why it is creating 10 ORACLE.EXE sessions for a single Oracle Server.
    This is the output of v$session view.
    SQL> select terminal,osuser,status,sid,serial#,program from v$session;
    TERMINAL OSUSER STATUS SID SERIAL# PROGRAM
    IMGDBSVR SYSTEM ACTIVE 1 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 2 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 3 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 4 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 5 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 6 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 7 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 8 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 9 1 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 10 1 ORACLE.EXE
    SUGANTHI_DBA suganthi ACTIVE 11 91 sqlplusw.exe
    11 rows selected.
    SQL>

    This is how i have related these two views:
    SQL> select s.terminal,s.osuser,s.status,s.paddr s_paddr,b.paddr p_paddr,s.program
    2 from v$session s,gv$bgprocess b
    3 where s.paddr=b.paddr;
    TERMINAL OSUSER STATUS S_PADDR P_PADDR PROGRAM
    IMGDBSVR SYSTEM ACTIVE 33AF2270 33AF2270 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF2654 33AF2654 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF2A38 33AF2A38 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF2E1C 33AF2E1C ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF3200 33AF3200 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF35E4 33AF35E4 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF39C8 33AF39C8 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF3DAC 33AF3DAC ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF4958 33AF4958 ORACLE.EXE
    IMGDBSVR SYSTEM ACTIVE 33AF4D3C 33AF4D3C ORACLE.EXE
    10 rows selected.
    SQL>
    Here, It shows 10 sessions are running.
    Whether this means 10 threads are running on the particular server or not?

  • I have installed iCloud a number of times on my HP laptop running Windows 7.

    I have installed iCloud a number of times on a high powered Windows 7 notebook computer.
    It goes through the complete instalation WITHOUT EVER asking me to make an account for icloud with an ID and password for iCloud.
    When I try to start icloud for the first time it asks me for my APPLE ID and password. I enter that, and it tells me that is a valid ID and password but it is not for iCloud and therefor refuses to open icloud on the computer for me!.
    THERE ARE NO OPTIONS available on that iCloud startup except for the request to enter the Apple ID and password which is then
    refused.
    I have tried changing and updating the password ...it still refuses to open.It just keeps on telling that is a valid ID and password for Apple but not for the iCloud...I just do not understand what is going on! Thanks for any help or ideas that might get me somewhere with this problem!

    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://www.lifehacker.com.au/2012/07/two-excellent-customisable-start-pages-worth-trying-as-igoogle-replacements/

Maybe you are looking for

  • I downloaded Firefox for Android on my Galaxy Tablet 7.0. The browser works fine when I first open it. When not in use and try getting bk on, nothing loads up.

    SAMSUNG GALAXY TAB 7.0 I have downloaded Firefox for Android on my tablet and added some add ons. When first using the browser, it works great and loads up fast. Once I get off Internet and try getting back on at a later time(whether it be a minute o

  • E72 and SIP - unable to make sip calls

    I have my E72 configured with SIP using the nokia sip client. Receiving calls work fine, however being called on my sip number causes the calling phone to go ' busy' when I pick up on the E72 Anyone a clue? No software updates available for my E72 Th

  • NEED SAMPLE HR REPORTS

    HI TO ALL EXPERTS, IM NEW TO ABAP HR PROGRAMMING I NEED SAMPLE HR REPORTS FOR PRACTICE (ESPECIALLY PAYROLL REPORTS) plz send it on mail id mausam_8atyahoo.com

  • E-mail audio

    Hi, sorry about the dumb question, but I've used the keyword search in iTunes, Quicktime, and Tiger and I still haven't found a thread. How do I e-mail audio clips that are 30-60 seconds in length? The files I'm wishing to mail are .aif at about 10-1

  • How do i upgrade iphoto 6.x in mac os x 10.6.8?

    hi there, i don't know if this is the right place to post this question... but i do Before posting it in ilife section, i'd like to know if someone here has, or had, the same "problem". This all originated from the upgrade i did on my ooooold macbook