SlideShare uma empresa Scribd logo
1 de 20
1. Distribution Transparency
Distribution transparency is the property of distributed
databases by the virtue of which the internal details of the
distribution are hidden from the users. The DDBMS designer
may choose to fragment tables, replicate the fragments and
store them at different sites. However, since users are
oblivious of these details, they find the distributed database
easy to use like any centralized database.
The three dimensions of distribution transparency are
Location transparency
Fragmentation transparency
Replication transparency
Location Transparency
 Location transparency ensures that the user can query on any
table(s) or fragment(s) of a table as if they were stored locally in
the user’s site. The fact that the table or its fragments are stored
at remote site in the distributed database system, should be
completely oblivious to the end user. The address of the remote
site(s) and the access mechanisms are completely hidden.
 In order to incorporate location transparency, DDBMS should
have access to updated and accurate data dictionary and
DDBMS directory which contains the details of locations of
data.
Fragmentation Transparency
 Fragmentation transparency enables users to query
upon any table as if it were un-fragmented. Thus, it
hides the fact that the table the user is querying on is
actually a fragment or union of some fragments. It also
conceals the fact that the fragments are located at
diverse sites.
 This is somewhat similar to users of SQL views, where
the user may not know that they are using a view of a
table instead of the table itself.
Replication Transparency
Replication transparency ensures that replication of databases
are hidden from the users. It enables users to query upon a table
as if only a single copy of the table exists.
Replication transparency is associated with concurrency
transparency and failure transparency. Whenever a user updates a
data item, the update is reflected in all the copies of the table.
However, this operation should not be known to the user. This is
concurrency transparency. Also, in case of failure of a site, the user
can still proceed with his queries using replicated copies without
any knowledge of failure. This is failure transparency.
Combination of Transparencies
 In any distributed database system, the designer should
ensure that all the stated transparencies are maintained
to a considerable extent. The designer may choose to
fragment tables, replicate them and store them at
different sites; all oblivious to the end user. However,
complete distribution transparency is a tough task and
requires considerable design efforts.
2. Explain Distributed Transaction
 A distributed transaction is a database
transaction in which two or more network
hosts are involved.
 Usually, hosts provide transactional
resources, while the transaction manager is
responsible for creating and managing a
global transaction that encompasses all
operations against such resources.
There are 4 properties:
Atomicity
 Atomicity means that you can guarantee that all of a transaction
happens, or none of it does; you can do complex operations as one
single unit, all or nothing, and a crash, power failure, error, or anything
else won't allow you to be in a state in which only some of the related
changes have happened.
Consistency
 Consistency means that you guarantee that your data will be
consistent; none of the constraints you have on related data will ever
be violated.
3.Isolation
 Isolation means that one transaction cannot read data from another
transaction that is not yet completed. If two transactions are executing
concurrently, each one will see the world as if they were executing
sequentially, and if one needs to read data that is written by another,
it will have to wait until the other is finished.
4.Durability
Durability means that once a transaction is complete, it is guaranteed that all of
the changes have been recorded to a durable medium (such as a hard disk), and
the fact that the transaction has been completed is likewise recorded.
3. How deadlock detection is different
for a distributed system
Deadlock detection algorithms get simplified
by maintaining Wait-for-graph (WFG) and
searching for cycles.
The different approaches for deadlock
detection are:
 Centralized Approach for Deadlock
Detection
 In this approach a local coordinator at each
site maintains a WFG for its local resources
and a central coordinator for constructing the
union of all the individual WFGs.
The central coordinator constructs the global
WFG from the information received from the
local coordinators of all sites.
Hierarchical Approach for Deadlock
Detection:
The hierarchical approach overcomes drawbacks
of the centralized approach.
This approach uses a logical hierarchy of deadlock
detectors called as controllers.
Each controller detects only those deadlocks that
have the sites falling within the range of the
hierarchy. Global WFG is distributed over a number
of different controllers in this approach.
Fully Distributed Approaches for Deadlock
Detection
In this approach each site shares equal
responsibility for deadlock detection.
 The first algorithm is based on construction of
WFG and second one is a probe-based
algorithm.
4. Comparison between Process and
Thread:
Process Thread
Definition
An executing instance of a program is called a
process.
A thread is a subset of the process.
Process
It has its own copy of the data segment of the
parent process.
It has direct access to the data segment of its
process.
Communication
Processes must use inter-process
communication to communicate with sibling
processes.
Threads can directly communicate with other
threads of its process.
Overheads Processes have considerable overhead. Threads have almost no overhead.
Creation
New processes require duplication of the
parent process.
New threads are easily created.
Control
Processes can only exercise control over
child processes.
Threads can exercise considerable control
over threads of the same process.
Changes
Any change in the parent process does not
affect child processes.
Any change in the main thread may affect
the behavior of the other threads of the
process.
Memory Run in separate memory spaces. Run in shared memory spaces.
File descriptors
Most file descriptors are not shared. It shares file descriptors.
File system There is no sharing of file system context. It shares file system context.
Signal
It does not share signal
handling.
It shares signal handling.
Controlled by
Process is controlled by the
operating system.
Threads are controlled by
programmer in a program.
Dependence Processes are independent. Threads are dependent.
Types of Thread -
 Threads are implemented in following two ways −
1. User Level Threads − User managed threads.
1. Kernel Level Threads − Operating System managed
threads acting on kernel, an operating system core
1. User Level Threads-
In this case, the thread management kernel is not
aware of the existence of threads. The thread library
contains code for creating and destroying threads, for
passing message and data between threads, for
scheduling thread execution and for saving and
restoring thread contexts. The application starts with
a single thread.
Advantages -
oThread switching does not require Kernel mode privileges.
oUser level thread can run on any operating system.
oScheduling can be application specific in the user level
thread.
oUser level threads are fast to create and manage.
Disadvantages -
oIn a typical operating system, most system calls are blocking.
oMultithreaded application cannot take advantage of
multiprocessing.
2. Kernel Level Threads -
In this case, thread management is done by the
Kernel. There is no thread management code in the
application area. Kernel threads are supported
directly by the operating system. Any application can
be programmed to be multithreaded. All of the
threads within an application are supported within a
single process.
The Kernel maintains context information for the
process as a whole and for individuals threads within
the process. Scheduling by the Kernel is done on a
thread basis. The Kernel performs thread creation,
scheduling and management in Kernel space. Kernel
threads are generally slower to create and manage
than the user threads.
Advantages -
oKernel can simultaneously schedule multiple threads from
the same process on multiple processes.
oIf one thread in a process is blocked, the Kernel can
schedule another thread of the same process.
oKernel routines themselves can be multithreaded.
Disadvantages -
oKernel threads are generally slower to create and manage
than the user threads.
oTransfer of control from one thread to another within the
same process requires a mode switch to the Kernel.

Mais conteúdo relacionado

Mais procurados

Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)Ravinder Kamboj
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Gyanmanjari Institute Of Technology
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashingarifmollick8578
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management SystemJanki Shah
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & CalculusAbdullah Khosa
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMSMegha Patel
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Meghaj Mallick
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architecturesPooja Dixit
 
Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data IntegrationAli Usman
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemAAKANKSHA JAIN
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency controlBinte fatima
 
Top Down Parsing, Predictive Parsing
Top Down Parsing, Predictive ParsingTop Down Parsing, Predictive Parsing
Top Down Parsing, Predictive ParsingTanzeela_Hussain
 
Query Decomposition and data localization
Query Decomposition and data localization Query Decomposition and data localization
Query Decomposition and data localization Hafiz faiz
 

Mais procurados (20)

Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashing
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
 
Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data Integration
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Query processing
Query processingQuery processing
Query processing
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency control
 
Top Down Parsing, Predictive Parsing
Top Down Parsing, Predictive ParsingTop Down Parsing, Predictive Parsing
Top Down Parsing, Predictive Parsing
 
Query Decomposition and data localization
Query Decomposition and data localization Query Decomposition and data localization
Query Decomposition and data localization
 

Semelhante a Distribution transparency and Distributed transaction

Semelhante a Distribution transparency and Distributed transaction (20)

Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Dos unit3
Dos unit3Dos unit3
Dos unit3
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptx
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
nnnn.pptx
nnnn.pptxnnnn.pptx
nnnn.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Distributed system
Distributed systemDistributed system
Distributed system
 
Thread
ThreadThread
Thread
 
Wiki 2
Wiki 2Wiki 2
Wiki 2
 
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating SystemProcess, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
 
Chapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptChapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).ppt
 
11700220085_DDBMS.pptx
11700220085_DDBMS.pptx11700220085_DDBMS.pptx
11700220085_DDBMS.pptx
 
Os
OsOs
Os
 
Thread
ThreadThread
Thread
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
Operating system
Operating systemOperating system
Operating system
 

Mais de shraddha mane

Software project management
Software project managementSoftware project management
Software project managementshraddha mane
 
Road Accident Alert System
Road Accident Alert SystemRoad Accident Alert System
Road Accident Alert Systemshraddha mane
 
Dhrupal Installation steps
Dhrupal Installation stepsDhrupal Installation steps
Dhrupal Installation stepsshraddha mane
 
Rural issues and development
Rural issues and developmentRural issues and development
Rural issues and developmentshraddha mane
 
Report on mini project(Student database handling using RMI)
Report on mini project(Student database handling using RMI)Report on mini project(Student database handling using RMI)
Report on mini project(Student database handling using RMI)shraddha mane
 
Clickstream Mining visualization for Ecommerce
Clickstream Mining visualization for EcommerceClickstream Mining visualization for Ecommerce
Clickstream Mining visualization for Ecommerceshraddha mane
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligenceshraddha mane
 
Rural issues in india
Rural issues in indiaRural issues in india
Rural issues in indiashraddha mane
 
Face recognition system
Face recognition systemFace recognition system
Face recognition systemshraddha mane
 
Data Mining Technology and its application in CRM of commercial banks
Data Mining Technology and its application in CRM of commercial banksData Mining Technology and its application in CRM of commercial banks
Data Mining Technology and its application in CRM of commercial banksshraddha mane
 
RPC communication,thread and processes
RPC communication,thread and processesRPC communication,thread and processes
RPC communication,thread and processesshraddha mane
 
Cryptography and network security
Cryptography and network securityCryptography and network security
Cryptography and network securityshraddha mane
 

Mais de shraddha mane (16)

Software project management
Software project managementSoftware project management
Software project management
 
Road Accident Alert System
Road Accident Alert SystemRoad Accident Alert System
Road Accident Alert System
 
Dhrupal Installation steps
Dhrupal Installation stepsDhrupal Installation steps
Dhrupal Installation steps
 
Dmbi project doc2
Dmbi project doc2Dmbi project doc2
Dmbi project doc2
 
Dmbi project doc
Dmbi project docDmbi project doc
Dmbi project doc
 
Rural issues and development
Rural issues and developmentRural issues and development
Rural issues and development
 
Report on mini project(Student database handling using RMI)
Report on mini project(Student database handling using RMI)Report on mini project(Student database handling using RMI)
Report on mini project(Student database handling using RMI)
 
Clickstream Mining visualization for Ecommerce
Clickstream Mining visualization for EcommerceClickstream Mining visualization for Ecommerce
Clickstream Mining visualization for Ecommerce
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
IP security
IP securityIP security
IP security
 
Rural issues in india
Rural issues in indiaRural issues in india
Rural issues in india
 
Face recognition system
Face recognition systemFace recognition system
Face recognition system
 
Data Mining Technology and its application in CRM of commercial banks
Data Mining Technology and its application in CRM of commercial banksData Mining Technology and its application in CRM of commercial banks
Data Mining Technology and its application in CRM of commercial banks
 
RPC communication,thread and processes
RPC communication,thread and processesRPC communication,thread and processes
RPC communication,thread and processes
 
Distributed system
Distributed systemDistributed system
Distributed system
 
Cryptography and network security
Cryptography and network securityCryptography and network security
Cryptography and network security
 

Último

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 

Último (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 

Distribution transparency and Distributed transaction

  • 1. 1. Distribution Transparency Distribution transparency is the property of distributed databases by the virtue of which the internal details of the distribution are hidden from the users. The DDBMS designer may choose to fragment tables, replicate the fragments and store them at different sites. However, since users are oblivious of these details, they find the distributed database easy to use like any centralized database. The three dimensions of distribution transparency are Location transparency Fragmentation transparency Replication transparency
  • 2. Location Transparency  Location transparency ensures that the user can query on any table(s) or fragment(s) of a table as if they were stored locally in the user’s site. The fact that the table or its fragments are stored at remote site in the distributed database system, should be completely oblivious to the end user. The address of the remote site(s) and the access mechanisms are completely hidden.  In order to incorporate location transparency, DDBMS should have access to updated and accurate data dictionary and DDBMS directory which contains the details of locations of data.
  • 3. Fragmentation Transparency  Fragmentation transparency enables users to query upon any table as if it were un-fragmented. Thus, it hides the fact that the table the user is querying on is actually a fragment or union of some fragments. It also conceals the fact that the fragments are located at diverse sites.  This is somewhat similar to users of SQL views, where the user may not know that they are using a view of a table instead of the table itself.
  • 4. Replication Transparency Replication transparency ensures that replication of databases are hidden from the users. It enables users to query upon a table as if only a single copy of the table exists. Replication transparency is associated with concurrency transparency and failure transparency. Whenever a user updates a data item, the update is reflected in all the copies of the table. However, this operation should not be known to the user. This is concurrency transparency. Also, in case of failure of a site, the user can still proceed with his queries using replicated copies without any knowledge of failure. This is failure transparency.
  • 5. Combination of Transparencies  In any distributed database system, the designer should ensure that all the stated transparencies are maintained to a considerable extent. The designer may choose to fragment tables, replicate them and store them at different sites; all oblivious to the end user. However, complete distribution transparency is a tough task and requires considerable design efforts.
  • 6. 2. Explain Distributed Transaction  A distributed transaction is a database transaction in which two or more network hosts are involved.  Usually, hosts provide transactional resources, while the transaction manager is responsible for creating and managing a global transaction that encompasses all operations against such resources.
  • 7. There are 4 properties: Atomicity  Atomicity means that you can guarantee that all of a transaction happens, or none of it does; you can do complex operations as one single unit, all or nothing, and a crash, power failure, error, or anything else won't allow you to be in a state in which only some of the related changes have happened. Consistency  Consistency means that you guarantee that your data will be consistent; none of the constraints you have on related data will ever be violated. 3.Isolation  Isolation means that one transaction cannot read data from another transaction that is not yet completed. If two transactions are executing concurrently, each one will see the world as if they were executing sequentially, and if one needs to read data that is written by another, it will have to wait until the other is finished.
  • 8. 4.Durability Durability means that once a transaction is complete, it is guaranteed that all of the changes have been recorded to a durable medium (such as a hard disk), and the fact that the transaction has been completed is likewise recorded.
  • 9. 3. How deadlock detection is different for a distributed system Deadlock detection algorithms get simplified by maintaining Wait-for-graph (WFG) and searching for cycles. The different approaches for deadlock detection are:
  • 10.  Centralized Approach for Deadlock Detection  In this approach a local coordinator at each site maintains a WFG for its local resources and a central coordinator for constructing the union of all the individual WFGs. The central coordinator constructs the global WFG from the information received from the local coordinators of all sites.
  • 11. Hierarchical Approach for Deadlock Detection: The hierarchical approach overcomes drawbacks of the centralized approach. This approach uses a logical hierarchy of deadlock detectors called as controllers. Each controller detects only those deadlocks that have the sites falling within the range of the hierarchy. Global WFG is distributed over a number of different controllers in this approach.
  • 12. Fully Distributed Approaches for Deadlock Detection In this approach each site shares equal responsibility for deadlock detection.  The first algorithm is based on construction of WFG and second one is a probe-based algorithm.
  • 13. 4. Comparison between Process and Thread: Process Thread Definition An executing instance of a program is called a process. A thread is a subset of the process. Process It has its own copy of the data segment of the parent process. It has direct access to the data segment of its process. Communication Processes must use inter-process communication to communicate with sibling processes. Threads can directly communicate with other threads of its process. Overheads Processes have considerable overhead. Threads have almost no overhead. Creation New processes require duplication of the parent process. New threads are easily created.
  • 14. Control Processes can only exercise control over child processes. Threads can exercise considerable control over threads of the same process. Changes Any change in the parent process does not affect child processes. Any change in the main thread may affect the behavior of the other threads of the process. Memory Run in separate memory spaces. Run in shared memory spaces. File descriptors Most file descriptors are not shared. It shares file descriptors. File system There is no sharing of file system context. It shares file system context.
  • 15. Signal It does not share signal handling. It shares signal handling. Controlled by Process is controlled by the operating system. Threads are controlled by programmer in a program. Dependence Processes are independent. Threads are dependent.
  • 16. Types of Thread -  Threads are implemented in following two ways − 1. User Level Threads − User managed threads. 1. Kernel Level Threads − Operating System managed threads acting on kernel, an operating system core
  • 17. 1. User Level Threads- In this case, the thread management kernel is not aware of the existence of threads. The thread library contains code for creating and destroying threads, for passing message and data between threads, for scheduling thread execution and for saving and restoring thread contexts. The application starts with a single thread.
  • 18. Advantages - oThread switching does not require Kernel mode privileges. oUser level thread can run on any operating system. oScheduling can be application specific in the user level thread. oUser level threads are fast to create and manage. Disadvantages - oIn a typical operating system, most system calls are blocking. oMultithreaded application cannot take advantage of multiprocessing.
  • 19. 2. Kernel Level Threads - In this case, thread management is done by the Kernel. There is no thread management code in the application area. Kernel threads are supported directly by the operating system. Any application can be programmed to be multithreaded. All of the threads within an application are supported within a single process. The Kernel maintains context information for the process as a whole and for individuals threads within the process. Scheduling by the Kernel is done on a thread basis. The Kernel performs thread creation, scheduling and management in Kernel space. Kernel threads are generally slower to create and manage than the user threads.
  • 20. Advantages - oKernel can simultaneously schedule multiple threads from the same process on multiple processes. oIf one thread in a process is blocked, the Kernel can schedule another thread of the same process. oKernel routines themselves can be multithreaded. Disadvantages - oKernel threads are generally slower to create and manage than the user threads. oTransfer of control from one thread to another within the same process requires a mode switch to the Kernel.