Results 1 to 3 of 3

Thread: ping pong

  1. #1
    ahmed_ijsh is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default ping pong

    Exercise: Ping pong


    1. Write a program in which two processes repeatedly pass a message back and forth.
    2. Insert timing calls to measure the time taken for one message.
    3. Investigate how the time taken varies with the size of the message.


    welcome all,
    please help me to solve this excercise by using java program, any infromation about what are steps to program this exercise

    thanks

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    can you please post the code you have so far?

    since java passes a value/message as a reference even if the size of the message varies this shouldn't affect the time.

  3. #3
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    5

    Default

    Quote Originally Posted by j2me64 View Post
    can you please post the code you have so far?
    Amen. Please show your work so this question isn't just a homework dump.

    since java passes a value/message as a reference even if the size of the message varies this shouldn't affect the time.
    I'm not so sure that I agree with this. References aren't passed here, data is.

Similar Threads

  1. Pong game
    By hannes in forum Threads and Synchronization
    Replies: 4
    Last Post: 02-03-2011, 10:52 AM
  2. ping pong
    By ahmed_ijsh in forum Java Gaming
    Replies: 0
    Last Post: 10-31-2010, 03:10 AM
  3. Ping pong game
    By adam405 in forum New To Java
    Replies: 8
    Last Post: 10-20-2010, 03:52 PM
  4. The bug in the Pong game
    By Phoeenix in forum New To Java
    Replies: 4
    Last Post: 07-21-2009, 07:13 PM
  5. Help with pong game
    By Eric in forum New To Java
    Replies: 2
    Last Post: 07-03-2007, 07:02 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
  •