1.

TIvoid deposit_salary(int emp_id, int sal) {DoSQLUpdate("update employees set balance = balance ++ salary + " where emp_id = " + emp_id);// DOSQL Update runs the given SQL update statement// on the database. Assume that this is// written in a Language that allows methods of a class// to be optionally defined as 'synchronized (in which case no two// threads can be in the same method as the same time)7Assuming that the SQL is run against a standard RDBMS that provides ACID guarantees (e.g. Oracle).To prevent data corruption, which of these statements is true (pick the best choice):Select the closest optionThe deposit_salary method must always be synchronizedThe deposit_salary method must be synchronized only if it will be used simultaneously bymultiple threads in the same programThe deposit_salary method must be synchronized if it is possible that it can be called at thesame time but in by different single-threaded programs, on the same computer.There is no need for the deposit_salary method to be synchronized since the database isdoing that already​

Answer»

EXPLANATION:

भाई मैं आपसे माफी चाहता हूं लेकिन मेरे पास लेकिन मैं से आंसर नहीं दे सकता हूं कि मेरे पास मैं इस क्लास का नहीं हूं



Discussion

No Comment Found