What is spin lock?

Ankur Kulhari

Locks are used in operating system to reserve critical section resources for mutual exclusion. Suppose a task is running and a little time (execution time) is left for its completion, That is: The running time left for it is less compared to the time that would be taken in blocking it and context switching. Under this situation it is not …

What is the difference between Swapping and Paging?

Ankur Kulhari

Swapping is a technique, used by medium term scheduler to send processes in waiting state from main memory to backing storage (called swap-out) and to bring processes which are ready to execute back into main memory from backing storage. Paging is a technique of memory management to allocate non-contiguous memory to a process. A process is divided into pages and …

Compare short term scheduler, medium term scheduler and long term scheduler.

Ankur Kulhari

S.N. Long-Term Scheduler Short-Term Scheduler Medium-Term Scheduler It is a job scheduler It is a CPU scheduler It is a process swapping scheduler. Speed is lesser than short term scheduler Speed is fastest among other two Speed is in between both short and long term scheduler. It controls the degree of multiprogramming It provides lesser control over degree of multiprogramming …

Static vs Dynamic Loading

Ankur Kulhari

Selection of Static or Dynamic Loading is made by developer at the time of computer program being developed. In case of static loading, the complete program is compiled and linked without leaving any external program or module dependency at the time of compilation. With static loading, the absolute program (and data) is loaded into memory in order for execution to …

Difference between computer architecture and computer organization?

Ankur Kulhari

Computer organization is about organization of all hardware devices into a system where as, architecture explains about the functions of hardware devices. The architecture indicates its hardware whereas, the organization reveals its performance. For designing a computer, its architecture is fixed first and then its organization is decided.

What are Aggregate and Scalar Functions available in SQL?

Ankur Kulhari

Aggregate and Scalar functions are in built function for counting and calculations. Aggregate functions operate against a group of values but returns only one value. AVG(column):- Returns the average value of a column COUNT(column):- Returns the number of rows (without a NULL value) of a column COUNT(*):- Returns the number of selected rows MAX(column):- Returns the highest value of a …

POD-26-Aug-2016

Ankur Kulhari

Write a Program to print following pattern # # ## ## ### ### #### #### ######### Number of rows should be entered by user at run time. Hint: Implement using array.

POD-24-Aug-2016

Ankur Kulhari

Write a Program to print following pattern # ## ### #### ##### ###### ####### Number of columns should be entered by user at run time. Hint: Implement using array.