• Tidak ada hasil yang ditemukan

PDF FACULTY OF EGINEERING AND TECHNOLOGY - Rama University

N/A
N/A
Protected

Academic year: 2024

Membagikan "PDF FACULTY OF EGINEERING AND TECHNOLOGY - Rama University"

Copied!
8
0
0

Teks penuh

(1)

FACULTY OF EGINEERING AND TECHNOLOGY

LECTURE -10

Dr. Hariom Sharan

Professor & Dean

Computer Science & Engineering

Distributed Systems (BCS-701)

(2)

Token Based Algorithm

Non-token based approach

Quorum based approach

Difference Between Token and Non Token based Algorithm

MCQ

Reference

(3)

1. Token Based Algorithm

A unique token is shared among all the sites.

If a site possesses the unique token, it is allowed to enter its critical section

This approach uses sequence number to order requests for the critical section.

Each requests for critical section contains a sequence number. This sequence number is used to distinguish old and

current requests.

This approach insures Mutual exclusion as the token is unique.

Example:Suzuki-Kasami’s Broadcast Algorithm

MUTUAL EXCLUSION IN DISTRIBUTED SYSTEM

(4)

2. Non-token based approach

A site communicates with other sites in order to determine which sites should execute critical section next. This

requires exchange of two or more successive round of messages among sites.

This approach use timestamps instead of sequence number to order requests for the critical section.

When ever a site make request for critical section, it gets a timestamp. Timestamp is also used to resolve any conflict

between critical section requests.

All algorithm which follows non-token based approach maintains a logical clock. Logical clocks get updated according toLamport’s scheme

Example:Lamport's algorithm, Ricart–Agrawala algorithm

(5)

3. Quorum based approach

Instead of requesting permission to execute the critical section from all other sites, Each site requests only a subset of

sites which is called a quorum.

Any two subsets of sites or Quorum contains a common site.

This common site is responsible to ensure mutual exclusion

Example:Maekawa’s Algorithm

MUTUAL EXCLUSION IN DISTRIBUTED SYSTEM

(6)

Difference Between Token and Non Token based Algorithm

S.No. Token Based Non Token Based

1 In the Token-based algorithm, a unique token is shared among all the sites in Distributed Computing Systems.

In Non-Token based algorithm, there is no token even not any concept of sharing token for access.

2 Here, a site is allowed to enter the Computer System if it possesses the token.

Here, two or more successive rounds of messages are exchanged between sites to determine which site is to enter the Computer System next.

3 The token-based algorithm uses the sequences to order the request for the Computer Systems and to resolve the conflict for the simultaneous requests for the System.

Non-Token based algorithm uses the timestamp (another concept) to order the request for the Computer Systems and to resolve the conflict for the simultaneous requests for the System.

4 The token-based algorithm produces less message traffic as compared to Non-Token based Algorithm.

Non-Token based Algorithm produces more message traffic as compared to the Token-based Algorithm.

5 Here, it was ensured that requests are executed exactly in the order as they are made in.

Here there is no surety of execution order.

6 Token-based algorithms make authentication quite easy. Non-Token based algorithms can’t make authentication easy.

7 Examples of Token-Based Algorithms are:

(i) Singhal’s Heuristic Algorithm (ii) Raymonds Tree Based Algorithm (iii) Suzuki-Kasami Algorithm

Examples of Non Token-Based Algorithms are:

(i) Lamport’s Algorithm (ii) Ricart-Agarwala Algorithm (iii) Maekawa’s Algorithm

(7)

MCQ

1. What is the access point (AP) in a wireless LAN?

a) device that allows wireless devices to connect to a wired network

b) wireless devices itself

c) both device that allows wireless devices to connect to a wired network and wireless devices itself

d) all the nodes in the network

2. In wireless ad-hoc network _________

a) access point is not required b) access point is must

c) nodes are not required d) all nodes are access points

3. Which multiple access technique is used by IEEE 802.11 standard for wireless LAN?

a) CDMA b) CSMA/CA c) ALOHA d) CSMA/CD

4. In wireless distribution system __________

a) multiple access point are inter-connected with each other

b) there is no access point c) only one access point exists d) access points are not required

5. A wireless network interface controller can work in _______

a) infrastructure mode b) ad-hoc mode

c) both infrastructure mode and ad-hoc mode d) WDS mode

(8)

http://cs-www.cs.yale.edu/homes/aspnes/classes/465/notes.pdf

https://www.geeksforgeeks.org/mutual-exclusion-in-distributed-system/

https://www.vidyarthiplus.com/vp/attachment.php?aid=43022

http://www.cs.fsu.edu/~xyuan/cop5611/lecture8.html

Referensi

Dokumen terkait

The union of the human soul with God through love and devotion was the essence of the teachings of the Sufi Saints.. The method of their realizing God was the renunciation of the World

—For the purpose of filling the seats of members of the Council of States retiring on the expiration of their term of office the President shall, by one or more notifications published

©Daffodil International University Page 39 4.1 CAD SECTION  We learn how CAD computer aided design done  We learned how to print in plotter  We learned about the uses of

• CO2 is important for Photosynthesis, CO2 taken by the plants by diffusion process from leaves through stomata • CO2 is returned to atmosphere during decomposition of organic

Application of 0.90kga.i./ha were found very 5 shoots for obtaining an early It is done to provide steady production of flowers but reduces the amount stem is pinched and later when

Symbol of beauty, Great diversity in plant growth and flower colour, cultivated for cut and loose flowers, oil extraction, rose water, flavouring agent and drying purposes, hips of

Extensively used for making garlands, beautification and other extraction, in sect and nematode repellent .It belongs to family Alaska, Apricot, Burpee’s Giant Fluffy, Burpee’s

Starters: a Cow dung b Urine c Night soil d Sewage and sludge Procedure: In this process the basic raw material for composting straw and other farm wastes is treated with mixture of