sync two threads

Discussion in 'Java' started by Abs, Jul 4, 2004.

  1. Abs

    Abs Guest

    Hi!

    I've two threads in my app running at the same time. One of them shows
    some pics in a slideshow, the other plays some background music. How can
    I sync the music thread to stop when the slideshow thread ends ?


    thanks in advance
     
    Abs, Jul 4, 2004
    #1
    1. Advertisements

  2. Abs

    Roedy Green Guest

    On Sun, 04 Jul 2004 20:11:25 +0200, Abs <> wrote or
    quoted :

    > I've two threads in my app running at the same time. One of them shows
    >some pics in a slideshow, the other plays some background music. How can
    >I sync the music thread to stop when the slideshow thread ends ?


    See http://mindprod.com/jgloss/jmf.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Jul 4, 2004
    #2
    1. Advertisements

  3. Abs

    Guest

    , Jul 16, 2004
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    3
    Views:
    635
    bruce barker
    Aug 26, 2004
  2. Brian J. Sayatovic

    Making two JButtons "rollover" in sync

    Brian J. Sayatovic, Aug 6, 2003, in forum: Java
    Replies:
    6
    Views:
    1,914
    Bill Dennis
    Aug 8, 2003
  3. yoda
    Replies:
    2
    Views:
    644
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  4. GenxLogic
    Replies:
    3
    Views:
    1,894
    andrewmcdonagh
    Dec 6, 2006
  5. threads without threads

    , Aug 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    615
    William Ahern
    Aug 27, 2004
  6. Pedro Pinto

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,665
    Arne Vajhøj
    Apr 9, 2008
  7. Trans
    Replies:
    2
    Views:
    596
    Trans
    Dec 12, 2005
  8. Une bévue
    Replies:
    0
    Views:
    305
    Une bévue
    Jun 14, 2006
Loading...