java Campaign Mailer Assignment (link on request)

Consider an interesting and challenging synchronization problem, the campaign mailer’s problem. Suppose that

a campaign mailing requires three items: an envelope, a campaign flyer and a stamp. There are three volunteers,

each of whom has only one of these items with infinite supply. There is an agent who has an infinite supply of

all three items. To put together a mailing, the volunteer who has an envelope must have the other two items, a

campaign flyer and a stamp. (You can figure out what happens with the volunteers who start with campaign

flyers and stamps, respectively.) The agent and volunteers share a table. The agent randomly generates two items

and notifies the volunteer who needs these two items. Once they are taken from the table, the agent supplies

another two. On the other hand, each volunteer waits for the agent’s notification. Once notified, the volunteer

picks up the items, puts together a mailing, takes the mailing to the mailbox, and goes back to the table waiting

for his next items. The problem is to come up with an algorithm for the volunteers using semaphores as

synchronization primitives.

Now, all jokes aside, this is an actual problem related to computer science. The agent represents an operating

system that allocates resources, while the volunteers represent applications that need resources. The problem is

to make sure that if resources are available that would allow one or more applications to proceed, those

applications should be awakened. Conversely, we want to avoid waking an application if it cannot proceed.

A restriction of the problem is that you are not allowed to modify the agent code. (Indeed, if the agent represents

an operating system it makes sense to assume that you don’t want to modify it every time a new application comes

along.) The agent uses these binary semaphores and actually consists of three concurrent threads (one of which

is given below.) Each waits on agentSem. Each time it’s signaled, one agent thread wakes up and provides

items by signaling two other semaphores

Fähigkeiten: Java

Mehr darüber freelancing on java, java freelance jobs india, how to get freelance java projects, campaign monitor api send email, campaign monitor api custom fields, online work java developers, online java project work from home, java freelance jobs for beginners, java emulate click website link, java eclipse nim assignment, need java programmer per assignment, java school project assignment, java project methods assignment, campaign monitor submit post request, java coding uni assignment, java online project assignment, java script css assignment ans, java spam mailer, java game code assignment, java real estate assignment

Über den Arbeitgeber:
( 2 Bewertungen ) hicksville, United States

Projekt-ID: #22751087

Vergeben an:


Hi there, I do Java programming have done OS related projects that deals with threading and synchronization. I went through your initial requirements and I would like to do this project if given the opportunity. Let me Mehr

$30 USD in 1 Tag
(1075 Bewertungen)

4 Freelancer bieten im Durchschnitt $80 für diesen Job


Hi, I have solved many multi threading problems using java, I would like to help you wit this problem, looking forward to discuss the same thanks.

$30 USD in 2 Tagen
(98 Bewertungen)

Hi I have done many java projects. You can share more details of your project in chat. Thank you.....

$250 USD in 7 Tagen
(58 Bewertungen)

Young and ambitious Java Software Engineer with a desire to succeed. I already have a couple of ideas on how to solve the problem, but would need to talk to you for additional information. Best regards, Dusan

$10 USD in 7 Tagen
(0 Bewertungen)