{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

prog1 - CNT 4714 Programming Assignment 1 Fall 2010 Title...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Page 1 Title: “Program Assignment 1: Multi-threaded Programming in Java Using Locks Points: 100 points Due Date: Monday September 13 th by 11:55 pm (WebCourses time) Objectives: To practice programming cooperating, synchronized multiple threads of execution. Description: In this programming assignment you will simulate the deposits and withdrawals made to a fictitious bank account (I’ll let you use my real bank account it you promise to make only deposits! ). In this case the deposits and withdrawals will be made by synchronized threads. Synchronization is required for two reasons mutual exclusion (updates cannot be lost) and because a withdrawal cannot occur if the amount of the withdrawal request is greater than the current balance in the account. This means that access to the account (the object) must be synchronized. This application requires cooperation and communication amongst the various threads (cooperating synchronized threads). (In other words, this problem is similar
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}