We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS506 Web Design and Development GDB Spring 2020 Solution & Discussion

ATM (Automated Teller Machine) machines are electronic outlets that allow customers to do their basic transactions without the help of bank’s representative. ATM machines facilitate customers to withdraw cash, pay bills and transfer amount etc. at any time. These machines are synchronized (i.e. can perform transactions in parallel by sharing resources), as soon as a customer withdraws amount, the remaining balance is updated. Therefore, concurrency (i.e. capability to perform more than one task at the same time) is involved in ATM transactions.

 

Being a Java developer what do you think, "Would multi-threading play a vital role in maintaining concurrency for efficient and fast transactions of ATM or will slow down the ATM services by making it more complicated?”.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 436

Replies to This Discussion

CS506 GDB Solution idea:

 

Being a java developer I would state that performance is not the main challenge of an ATM nor is multi-threading. Robustness and provable correctness is of greater importance and those are much easier to achieve using a single –threaded solution.

Solution 1
The second Is partly true .yes multi-threading can slow down concurrency if it is poorly implemented .causing deadlocks or live locks .but that is not so much because its complicated but rather that it is difficult to write correct code.
But neither statement addresses the important issue when dealing with ATMs, financial transaction or other important things in life .multi-threaded code can and will break and produce incorrect results which is far worse than being slow.
SOLUTION 2
• The ATM does not serve concurrent customers
• It will send requests to a system elsewhere, andwait for the reply
Hence it has no need for multi-threading, and blocking is just fine complicated code is not a first resort.

RSS

Latest Activity

Muhammad Faizan Alam replied to +M.Tariq Malik's discussion MTH601 Operations Research Assignment 01 Fall 2020 Solution / Discussion Due Date: 02-12-2020 in the group MTH601 Operations Research
4 hours ago
Muhammad Faizan Alam joined +M.Tariq Malik's group
4 hours ago
+M.Tariq Malik replied to yasmeen anwer's discussion MCS 1st Quiz
6 hours ago
+M.Tariq Malik liked yasmeen anwer's discussion MCS 1st Quiz
6 hours ago
Profile IconSehrish Mumtaz, Nazir shah, Shahid Iqbal and 8 more joined Virtual University of Pakistan
6 hours ago
+M.Tariq Malik replied to Imtiaz Waqar's discussion COST AND MANAGEMENT ACCOUNTING (MGT402) ASSIGNMENT NO. 01 in the group MGT402 Cost & Management Accounting
6 hours ago
+M.Tariq Malik replied to Muhammad Kashif's discussion FIN611 GDB No 1 Fall 2020 Solution / Discussion in the group FIN611 Advanced Financial Accounting
7 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion FIN611 GDB No 1 Fall 2020 Solution / Discussion in the group FIN611 Advanced Financial Accounting
7 hours ago
yasmeen anwer posted a discussion
7 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ENG201 Online Quiz No 01 Fall 2020 Solution Discussion Last Date: 27-11-2020 in the group ENG201 Business and Technical English Writing
7 hours ago
HAFIZA AREESHA ASLAM replied to +M.Tariq Malik's discussion SOC101 SOC101 Short Notes Glossary - SOC101 Short Questions Answers - SOC101 Subjective Solved Questions in the group SOC101 Introduction to Sociology
7 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PHY301 Assignment 01 Fall 2020 Solution / Discussion in the group PHY301 Circuit Theory
8 hours ago

Looking For Something? Search Here

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.