You are here:

C/operating system

Advertisement


Question
halo,i would like to know an example of producer/consumer problem.thanks

Answer
A mail server and a mail client can be an example.
Yahoo has got a server sitting in US.
You are in some other part of world, say Bangalore. You connect to yahoo server via your browser. So, your browser becomes the client. You send request for the mail and server shows you the list of your mails.

Another typical example is Database say of a bank.
So, you do the transaction from an ATM. You send the request for drawing some money. It goes to the database as a query and if the amount is available, then the request will be processed and you will get the money.

-ssnkumar

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.