Concurrency



Rating - 3/5
496 views

 

These Topics Are Also In Your Syllabus
1 Initiating the Project-Managing the Information Systems Project link
2 Planning the Project-Managing the Information Systems Project link
You May Find Something Very Interesting Here. link
3 Executing the Project-Managing the Information Systems Project link
4 Closing Down the Project-Managing the Information Systems Project link
5 Representing and Scheduling Project Plans 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 Building the Baseline Project Plan link
2 Reviewing the Baseline Project Plan link
You May Find Something Very Interesting Here. link
3 Pine Valley Furniture WebStore: Systems Planning and Selection link
4 Performing Requirements Determination link
5 Traditional Methods for Determining Requirements link

 

These Topics Are Also In Your Syllabus
1 Real Time And Distributed System link
2 Basic Principles Of Successful System link
You May Find Something Very Interesting Here. link
3 Role and need of systems analyst link
4 Qualifications and responsibilities Of System Analyst link
5 Types Of Systems link

Rating - 3/5
515 views

Advertisements
Rating - 3/5