Concurrency



Rating - 3/5
510 views

 

These Topics Are Also In Your Syllabus
1 Scope and classification of metrics link
2 Software measuring process and product attributes link
You May Find Something Very Interesting Here. link
3 Direct and Indirect Measures, Reliability link
4 What Is Information Systems Analysis and Design? link
5 Types Of Systems link

Both services and applications provide resources that can be shared by clients in a distributed system. There is, therefore, a possibility that several clients will attempt to access a shared resource at the same time. For example, a data structure that records bids for an auction may be accessed very frequently when it gets close to the deadline time.
The process that manages a shared resource could take one client request at a time. But that approach limits throughput. Therefore services and applications generally allow multiple client requests to be processed concurrently. To make this more concrete, suppose that each resource is encapsulated as an object and that invocations are executed in concurrent threads. In this case it is possible that several threads may be executing concurrently within an object, in which case their operations on the object may conflict with one another and produce inconsistent results. For example, if two concurrent bids at an auction are ‘Smith: $122’ and ‘Jones: $111’, and the corresponding operations are interleaved without any control, then they might get stored as ‘Smith: $111’ and ‘Jones: $122’.
The moral of this story is that any object that represents a shared resource in a distributed system must be responsible for ensuring that it operates correctly in a concurrent environment. This applies not only to servers but also to objects in applications. Therefore any programmer who takes an implementation of an object that
was not intended for use in a distributed system must do whatever is necessary to make it safe in a concurrent environment.
For an object to be safe in a concurrent environment, its operations must be synchronized in such a way that its data remains consistent. This can be achieved by standard techniques such as semaphores, which are used in most operating systems.

These Topics Are Also In Your Syllabus
1 Sources of Software-Systems Acquisition link
2 Choosing Off-the-Shelf Software-Systems Acquisition link
You May Find Something Very Interesting Here. link
3 Reuse-Systems Acquisition link
4 Pine Valley Furniture Company Background-Managing the Information Systems Project link
5 Types Of Systems link

 

These Topics Are Also In Your Syllabus
1 Focus on resource sharing link
2 Challenges link
You May Find Something Very Interesting Here. link
3 Heterogeneity link
4 Openness link
5 Security link

Rating - 3/5
453 views

Advertisements
Rating - 3/5