Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 12-09-2009
Member
 
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?
Reply With Quote
  #2  
Old 12-09-2009
Member
 
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.
Reply With Quote
  #3  
Old 12-09-2009
Member
 
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.
Reply With Quote
  #4  
Old 12-09-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 04:17 PM.