Results 1 to 4 of 4

Thread: How to make Inter Thread Communicate with each other

  1. #1
    Join Date
    Apr 2008
    Posts
    242

    How to make Inter Thread Communicate with each other

    How to make Inter Thread Communicate with each other, design pattern and implementation details of coding a system that allows for simple and efficient inter-thread communications from the perspective of a design pattern approach. What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?

  2. #2
    Join Date
    Feb 2009
    Posts
    105

    Re: How to make Inter Thread Communicate with each other

    Multi-threaded code has a reputation for being difficult to write and prone to deadlocks, race conditions and unpredictable behaviors. After understanding that threads can collide with each other, and how you keep them from colliding, the next step is to learn how to make threads cooperate with each other. While this remains true if you are forced to handle locking yourself, Foundation provides all the tools you require to manage typical multi-threaded situations so that you can avoid the risks of locks entirely.

  3. #3
    Join Date
    Oct 2008
    Posts
    127

    Re: How to make Inter Thread Communicate with each other

    Although this seems a bit strange at first—to have something that's exclusively for threading as part of the universal base class—it's essential because they manipulate the lock that's also part of every object. The IPC part aims at making the processes communicate each other with a mechanism which is very similar to the Linux's pipe mechanism where the processes send data to each other through a FIFO structure in memory. As a result, you can put a wait( ) inside any synchronized method, regardless of whether that class extends Thread or implements Runnable.

  4. #4
    Join Date
    Jan 2009
    Posts
    134

    Re: How to make Inter Thread Communicate with each other

    A lot of multi-threaded code uses a careful system of locks, synchronized sections, volatile variables and atomic operations to allow single objects to be accessed simultaneously from multiple threads. One thing you should try is go into global config or privilege exec and type in 'IP routing' command.

Similar Threads

  1. Question about Inter-Vlan routing switches
    By MarDaA in forum Hardware Peripherals
    Replies: 2
    Last Post: 13-02-2012, 01:23 PM
  2. Synchronize a producer thread and a consumer thread in C#
    By Ayuka in forum Software Development
    Replies: 6
    Last Post: 10-11-2010, 04:04 AM
  3. Inter-thread communication with stdout
    By Captain Carrot in forum Software Development
    Replies: 5
    Last Post: 12-03-2010, 12:34 PM
  4. How to make a New Thread / Topic on TechArena Forums
    By Afzal in forum TechArena Discussions and Events
    Replies: 3
    Last Post: 27-01-2009, 09:43 PM
  5. AMD Turion 64 X2 vs inter core 2 duo?
    By Samra in forum Motherboard Processor & RAM
    Replies: 7
    Last Post: 10-11-2008, 10:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,720,963,227.36207 seconds with 17 queries