2. (a) What is an HTTP Servlet and what are its main methods in Java EE? Briefly describe how servlets are used by other

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. (a) What is an HTTP Servlet and what are its main methods in Java EE? Briefly describe how servlets are used by other

Post by answerhappygod »

2 A What Is An Http Servlet And What Are Its Main Methods In Java Ee Briefly Describe How Servlets Are Used By Other 1
2 A What Is An Http Servlet And What Are Its Main Methods In Java Ee Briefly Describe How Servlets Are Used By Other 1 (52.19 KiB) Viewed 52 times
2. (a) What is an HTTP Servlet and what are its main methods in Java EE? Briefly describe how servlets are used by other Java EE technologies. (b) Let us assume that the following transactions T and U will be executed on the same server. T: balance = a.getBalance(); a.setBalance(balance + 40); U: balance = a.getBalance(); a.setBalance(balance * 2); Transaction T increases the balance of account a. Transaction U doubles the balance of account a. i. Could the 'Lost Update' problem happen when the operations of these two transactions are executed in some order? If so, how could this be prevented using two-phase locking and exclusive locks? ii. Could the 'Dirty Read' problem happen when the operations of these two transactions are executed in a serially equivalent manner? If so, does that depend on when T and U commit or abort and why?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply