Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 68

Thread: Threads!!!

  1. #21
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    Does this mean that it keeps running through this loop repeatedly and executing the same return atmRunnable object?
    Add more printlns to see what is happening. Show what atmRunnable it is executing each time thru the loop.

    One change I made to your code was to put all of the classes in one class and run the app from a main so all of the output goes to one console. You could probably write a test class with a main like this to put all the output in one console window:
    Java Code:
     public static void main(String[] args) {
        Thread t = new Thread(new Runnable() {
          public void run() {
            Server.main(new String[] {port});
          }
    
        });
        t.start();
    /*
        Thread t2 = new Thread(new Runnable() {
          public void run() {
            Client.main(new String[] {"localhost", port});
            System.out.println("1Back from Client.main() call");
          }
    
        });
        t2.start();
    */
        // Second client does NOT work !!!<<<<<<<<<<<<<<<<
        Thread t3 = new Thread(new Runnable() {
          public void run() {
            Client.main(new String[] {"localhost", port, "shutDown"});      // 3 args for shutdown (
            System.out.println("2Back from Client.main() call");
          }
    
        });
        t3.start();
    
    
        System.out.println("Exiting main");
      }  // end main()
    Last edited by Norm; 11-12-2011 at 03:33 PM.

  2. #22
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    ok, new output, but I don't think it is in the correct format as I believe I a printing the memory locations of the ATMRunnable object, or is this what you wanted me to see...here is my println statement:

    System.out.println("atmRunnable is executing this in the For Loop equals: " + atmRunnableItem);


    Accepting clients now
    Client acquired on port #7777, reading from socket
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@7369ca65
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: DEPOSIT 1000.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@4e106082
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@a3901c6
    this.commandLine in ATMRunnable = DEPOSIT 1000.0
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: WITHDRAW 250.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@3c6f579
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@3ced0338
    this.commandLine in ATMRunnable = WITHDRAW 250.0
    commandLine from Server equals: WITHDRAW 750.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@5e228a02
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    atmRunnable is executing this in the For Loop equals: cscie160.hw6.ATMRunnable@7cd0a5d9
    this.commandLine in ATMRunnable = WITHDRAW 750.0
    this.commandLine in ATMRunnable = BALANCE
    done
    Client serviced

  3. #23
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    I believe I a printing the memory locations of the ATMRunnable object
    What you see is what the Object's class's toString() method returns. It's useful to see that you are getting a new object every time.
    If you override the toString() method and have it return some contents of the ATMRunnable object, it could be more useful. If you look in my debug output you will see that is what I did:
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=WITHDRAW 750.0

  4. #24
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    Yes, I understand, and I quickly tried to get this running, but kept getting errors, so if you don't mind I will use your output..so it seems that I am getting a different command and in the right order each time, so not sure that their is anything wrong here, and like you said the memory locations on my output are always different...so next steps?

  5. #25
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    not sure that their is anything wrong here
    Does the program do what you want it to do?
    If not, please explain what it is not doing. Did the output from my version look like what you expect the program to do?

  6. #26
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    It looks like the first DEPOSIT on your program version did what I expected it to do (10,000 = 1,000 DEPOSIT = 11,000), but the WITHDRAWALS did not, was this intentional only to make this portion work?

    In my version, only BALANCE is returning the correct value, subsequent runs on DEPOSIT or WITHDRAWAL do not.

  7. #27
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    My latest output proving that I exit the for loop ok...


    huit-smartino:Desktop spm888$ java cscie160/hw6/Server 7777
    Accepting clients now
    Client acquired on port #7777, reading from socket
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: DEPOSIT 1000.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: DEPOSIT 1000.0
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: DEPOSIT 1000.0
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = DEPOSIT 1000.0
    commandLine from Server equals: WITHDRAW 250.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: WITHDRAW 250.0
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: WITHDRAW 250.0
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = WITHDRAW 250.0
    commandLine from Server equals: WITHDRAW 750.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: WITHDRAW 750.0
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: WITHDRAW 750.0
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    I know I am getting out of the Loop, since this println is just before the return atmRunnable: Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = WITHDRAW 750.0
    this.commandLine in ATMRunnable = BALANCE
    done
    Client serviced

  8. #28
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    I did not change the commands that were sent by the Client other than adding a command at the end to tell the server to exit.
    And I did not change the logic for any of the commands.

  9. #29
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    but the WITHDRAWALS did not
    If you add some more printlns the reason for this will come out when you look at what is printed out.
    You need to know when all objects are constructored and when all methods are called and what the values of all the variables are for each of those calls.

  10. #30
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    Knowing that the server needs to see a null, signifying the end of the stream of commands from the Client I believe this is the command that you are sending to the server...I tried devising some commands, but was unsuccessful. Am I in the right ballpark?

  11. #31
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    the command that you are sending to the server.
    I added a command to the Commands enum and test for it in the server's while loop

    Then I send that command at the end of the list of commands being sent in the Client.

  12. #32
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    I feel like I am so close to a solution, but have to admit my brain is on fire!! :^}

    Here is what I put in ATMProxy.java========================


    public String sendNull() throws ATMException
    {
    System.out.println("ATMProxy writing command to server: " + Commands.NULL);
    printStream.println(Commands.NULL + "");
    return null;
    }


    Here is what I put in ATMImplementation.java==================

    public synchronized String sendNull()
    {
    return null;
    }

    Here is what I put in Commands.java=========================

    package cscie160.hw6;

    public enum Commands
    {
    DEPOSIT, WITHDRAW, BALANCE, NULL
    }
    ~

    Here is what I put in ATM.java============================

    package cscie160.hw6;

    public interface ATM
    {
    public void deposit(float amount) throws ATMException;
    public void withdraw(float amount) throws ATMException;
    public Float getBalance() throws ATMException;
    public String sendNull() throws ATMException;
    }


    Here is what i put in Client.java as the very last command============================

    System.out.println("Sending a Null: " + atm.sendNull());



    When i run Server and Client I get an ERROR: cscie160.hw6.ATMException: Missing amount for command "NULL"

    Thoughts, am I missing something????

  13. #33
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    Why not use a value the same as the others for the shutdown command? Null has no meaning when you read it.
    I used this:
    Java Code:
    public enum Commands 
    {
        DEPOSIT, WITHDRAW, BALANCE, END_PROGRAM
    }
    
     ...
        public void shutDown() {
            printStream.println(Commands.END_PROGRAM);
      			System.out.println("ATMProxy: Sending End program");
        }
    
       ....
               if(args.length > 2)
                  atm.shutDown();  // done shut down server   <<<<<<<<<<<<<<<<<<<<<<<<< Make conditional
       ...
            if(commandLine.indexOf(Commands.END_PROGRAM.toString()) >= 0) {
                  System.out.println("S - End program");
                  break;  // done
            }

  14. #34
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    I did all the below, see where I put the code, but same results....


    Quote Originally Posted by Norm View Post
    Why not use a value the same as the others for the shutdown command? Null has no meaning when you read it.
    I used this:
    Java Code:
    [B]I put the below in Command.java[/B]
    
    public enum Commands 
    {
        DEPOSIT, WITHDRAW, BALANCE, END_PROGRAM
    }
    
    [B]I put the below in ATMProxy.java[/B]
     ...
        public void shutDown() {
            printStream.println(Commands.END_PROGRAM);
      			System.out.println("ATMProxy: Sending End program");
        }
    
    [B]I put the below in Client.java, not sure what you meant by Make conditional....[/B]
       ....
               if(args.length > 2)
                  atm.shutDown();  // done shut down server   <<<<<<<<<<<<<<<<<<<<<<<<< Make conditional
    
    [B]I put the below in Server.java[/B]  
    
     ...
            if(commandLine.indexOf(Commands.END_PROGRAM.toString()) >= 0) {
                  System.out.println("S - End program");
                  break;  // done
            }

  15. #35
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    what you meant by Make conditional
    Notice the if test. That makes the call to shutDown conditional on there being 3 args to the main() method.
    I was looking at using more than one Client and didn't want the first client doing a shutdown.

    but same results....
    Please explain and show the full text of the error message and the code the causes it.

  16. #36
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    Ok, here is what I get for an output, and I believe it is still hanging based on the CTRL-C on the server I need to do...You said this worked for you, and you got at least the DEPOSIT to work?

    Server Side:


    huit-smartino:Desktop spm888$ java cscie160/hw6/Server 7777
    Accepting clients now
    Client acquired on port #7777, reading from socket
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: DEPOSIT 1000.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: DEPOSIT 1000.0
    this.commandLine in ATMRunnable = DEPOSIT 1000.0
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    commandLine from Server equals: WITHDRAW 250.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: WITHDRAW 250.0
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = WITHDRAW 250.0
    commandLine from Server equals: WITHDRAW 750.0
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: WITHDRAW 750.0
    this.commandLine in ATMRunnable = BALANCE
    commandLine from Server equals: BALANCE
    i in the For Loop equals: 0
    o in the For Loop equals: 0
    requestQueueSz in the For Loop equals: 1
    Currently this is the command that is being sent to ATMRunnable: BALANCE
    this.commandLine in ATMRunnable = WITHDRAW 750.0
    S - End program
    Client serviced
    this.commandLine in ATMRunnable = BALANCE
    ^Chuit-smartino:Desktop spm888$

    NOTE above I have to still CTRL-C....to end program

    Client Side===================

    huit-smartino:Desktop spm888$ java cscie160/hw6/Client localhost 7777
    ATMProxy writing command to server: BALANCE
    Server returned: 0.0
    Balance: 0.0
    Depositing: 1000
    ATMProxy writing command to server: DEPOSIT
    ATMProxy writing command to server: BALANCE
    Server returned: 0.0
    Balance: 0.0
    Withdrawing: 250
    ATMProxy writing command to server: WITHDRAW
    ATMProxy writing command to server: BALANCE
    Server returned: 0.0
    Balance: 0.0
    Withdrawing: 750
    ATMProxy writing command to server: WITHDRAW
    ATMProxy writing command to server: BALANCE
    Server returned: 0.0
    Balance: 0.0
    ATMProxy: Sending End program

  17. #37
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    I posted the program's output earlier (post#19) that shows what the code did when it executed for me.
    Here is its current output:
    Running: F:\Java\jre6\bin\java.exe -classpath D:\JavaDevelopment;.;..\. -Xmx128M ClientServer6

    Exiting main
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@ca0b6
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@173a10f
    S - Accepting clients now
    S - Client acquired on port #7777, reading from socket
    ATMProxy writing command to server: BALANCE
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@89ae9e
    S - requestQueue Size is: 1
    S - commandLine equals: BALANCE
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=BALANCE
    ATMR run - Threads should go here eventually... cL=BALANCE
    ATMImpl BALANCE=10000.0
    ATMR run println result=10000.0
    ATMProxy: Server returned: 10000.0
    C1 - Balance: 10000.0
    C2 - Depositing: 1000
    ATMProxy writing command to server: DEPOSIT
    ATMProxy writing command to server: BALANCE
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@60aeb0
    S - requestQueue Size is: 1
    S - commandLine equals: DEPOSIT 1000.0
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=DEPOSIT 1000.0
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@66848c
    S - requestQueue Size is: 1
    S - commandLine equals: BALANCE
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=BALANCE
    ATMR run - Threads should go here eventually... cL=BALANCE
    ATMImpl BALANCE=10000.0
    ATMR run println result=10000.0
    ATMProxy: Server returned: 10000.0
    C3 - Balance: 10000.0
    C4 - Withdrawing: 250
    ATMProxy writing command to server: WITHDRAW
    ATMProxy writing command to server: BALANCE
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@1d58aae
    S - requestQueue Size is: 1
    S - commandLine equals: WITHDRAW 250.0
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=WITHDRAW 250.0
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@e09713
    S - requestQueue Size is: 1
    S - commandLine equals: BALANCE
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=BALANCE
    ATMR run - Threads should go here eventually... cL=BALANCE
    ATMImpl BALANCE=10000.0
    ATMR run println result=10000.0
    ATMProxy: Server returned: 10000.0
    C5 - Balance: 10000.0
    C6 - Withdrawing: 750
    ATMProxy writing command to server: WITHDRAW
    ATMProxy writing command to server: BALANCE
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@156ee8e
    S - requestQueue Size is: 1
    S - commandLine equals: WITHDRAW 750.0
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=WITHDRAW 750.0
    ATMR run - Threads should go here eventually... cL=WITHDRAW 250.0
    new Account created
    ATMImp bal=10000.0, this=ClientServer6$ATMImplementation@19b49e6
    S - requestQueue Size is: 1
    S - commandLine equals: BALANCE
    ATMImpl making a WITHDRAWAL amt=250.0, new balance=9750.0
    ATMR - requestQueue Size is: 1
    ATMR - requestQueue Size is: 1
    ATMR run - Threads should go here eventually... cL=DEPOSIT 1000.0
    ATMR - I am returning atmRunnableItem=ATMRn cmdLine=BALANCE
    ATMImpl making a DEPOSIT amt=1000.0, new balance=10750.0
    ATMR run - Threads should go here eventually... cL=BALANCE
    ATMImpl BALANCE=10750.0
    ATMR run println result=10750.0
    ATMProxy: Server returned: 10750.0
    C7 - Balance: 10750.0
    ATMProxy: Sending End program
    S - End program
    2Back from Client.main() call
    S - Client serviced
    S exiting main
    ATMR run - Threads should go here eventually... cL=WITHDRAW 750.0
    ATMImpl making a WITHDRAWAL amt=750.0, new balance=10000.0

    0 error(s)

  18. #38
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    Couple of questions:

    Did the locations that I put your supplied code make sense, i.e.: that is where they should have gone?

    The output you just sent was from the Server.java side, do you get the same on the Client.java side for output?

    Do you need to CTRL-C out of the Server.java program to force it to end?

    thanks again,

  19. #39
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Threads!!!

    I tried to show in post#21 how I test. I have a new class that calls the Server and Client in the same JVM. That puts the print outs in the one console and shows their ordering for server and client.
    Do you need to CTRL-C out of the Server.java program to force it to end?
    No the server is told to exit via the shutdown command as I showed in post#33 with the END_PROGRAM command/shutDown() method.

    Have you checked for and removed any endless loops? There was one I removed. I found it by adding printlns and saw it being repeated forever on the console
    Last edited by Norm; 11-12-2011 at 10:36 PM.

  20. #40
    smartino is offline Member
    Join Date
    Sep 2011
    Posts
    64
    Rep Power
    0

    Default Re: Threads!!!

    Norm,

    You have been great in helping me ALL DAY today and I appreciate it, and I think I have implemented everything we have discussed and in the appropriate areas it seems, but really unsure now how to proceed, since my Server.java is still hanging, and the Client side output is not displaying updated results of the DEPOSIT and WITHDRAWAL.

    Can I get a copy of the new Class you put together and see if it works on my side and give me the same output? Or would you rather I REPOST my Server.java and Client.java programs to see if I messed it up..

    thanks

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Threads
    By nsr2008.mca in forum New To Java
    Replies: 7
    Last Post: 10-18-2010, 11:47 AM
  2. Threads and UML
    By JUser in forum Advanced Java
    Replies: 0
    Last Post: 09-27-2010, 08:43 PM
  3. Threads
    By Tanuck in forum New To Java
    Replies: 5
    Last Post: 09-21-2010, 02:44 AM
  4. When to use threads
    By simorgh in forum Threads and Synchronization
    Replies: 2
    Last Post: 02-12-2010, 07:43 AM
  5. Threads
    By one198 in forum Threads and Synchronization
    Replies: 1
    Last Post: 11-20-2007, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •