• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Channel

 
Ranch Hand
Posts: 581
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw a sample code, in which instead of implementing the process as a monitor with arrive and depart access methods, the process is implemented as a thread which receives singals from channels called arrive and depart. The channel version of the car park process looks much more clumsy. Then why channels? When do people usually use channel, correspondingly synchronous message-passing for what? The professor mentioned Ada and Occam, the implementation of channel with them are simpler, but they are somehow hardware-oriented(?? to deal with the electronic signals in the integrated circuit??). If so, why does java still have Channel/Select/Selectable? There must be some usage, when to use for what? Thank you very much in advance.

Regards,
Ellen
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic