OSI (Open Systems Interconnection) Layers
It has been developed by ISO - "International Organization of Standardization", in 1974. It's a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe.
Layers of OSI
Physical Layer (Layer 1)
known as Hardware/Media layers
Data Link Layer (Layer 2)
known as Hardware/Media layers
Network Layer (Layer 3)
known as Hardware/Media layers
Transport Layer (Layer 4)
Heart of OSI
Session Layer (Layer 5)
known as Software/Host layers
Presentation Layer (Layer 6)
also called the "Translation Layer"
known as Software/Host layers
Application Layer (Layer 7)
known as Software/Host layers
ACID Properties in a Database
Atomicity
Atomicity ensures that a transaction is treated as a single, indivisible unit of work. Transactions are either completed in their entirety or not at all. If any part of a transaction fails, the entire transaction is rolled back, and the database remains unchanged.
Consistency
Transactions never leave your database in a half-finished state
Isolation
Keeps transactions separated from each other until they have finished
Durability
Keep track of pending changes
Deadlock
A deadlock is a situation that occurs in a concurrent system, such as a computer program or a database, where two or more processes (or threads) are unable to proceed because each is waiting for a resource that the other holds.
There are four necessary conditions for a deadlock to occur, often referred to as the "deadlock conditions" or the "Coffman conditions":
Mutual Exclusion
Hold and Wait
No Preemption
Circular Wait
Types of deadlocks
Cycle locks deadlock
Conversion locks deadlock
Deadlock Prevention
Wait-Die Scheme
Wound Wait Scheme
Resource Allocation Graph
Lock Ordering
Timeouts
Resource Preemption
Process Termination
Avoidance Algorithms
Distributed Systems and Database Management