Using WinAPIs to apply Message Queue Inter-Process Communication Method

Today, I’m about writing an interesting article. It’s all about WinAPIs and Message Queues.

The first question is: What’s Inter-Process Communication?

Answer: Inter-process communication (IPC) is a set of techniques for the exchange of data among multiple threads in one or more processes.

There are a lot of methods to provide this service:

  1. Socket.
  2. Pipe.
  3. Named Pipe.
  4. Message Queue.
  5. Shared Memory.
  6. Message Passing.
  7. Others.

There are a number of APIs which may be used for IPC. A number of platform independent APIs include found in this link.

I’ve read a little about message queue and found that it’s very interesting. You can explore more about it from the links below:

I’ve simulated the bully algorithm using this technique. You can find source code in this link.

Advertisements

One thought on “Using WinAPIs to apply Message Queue Inter-Process Communication Method

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s