This website uses cookies to ensure you have the best experience. Learn more

Inheritance Anomaly In Object Oriented Programming

6059 words - 25 pages

1. Motivation concurrent-OO languages provide maximum computatinal and modeling power through concurrency of objects, encapsulation and code re-use. It has been found that synchronization code cannot be inherited without non-trivial redefinitions, this phenomenon is known as Inheritance Anomaly. Inheritance Anomaly is more severe than violation of class encapsulation in sequential language. Inheritance anomaly entails a severe drawback for the development of large-scale and complex systems in Object Oriented Concurrent Programming(OOCP) languages because greatest benefit of using the OO framework are inheritance and encapsulation. Better more reusable, mechanisms are needed to create and ...view middle of the document...

This phenomenon forcing of redefinitions of inherited methods in order to maintain the integrity of concurrent objects is called inheritance anomaly. The scheme for achieving object wise synchronization is called synchronization scheme of language. Inheritance anomaly depends on the synchronization scheme of language. The semantical conflicts between the descriptions of object-wise synchronization and inheritance within the language leads to Inheritance anomaly. Redefinitions would be required for classes in an OOCP language that adopted a certain synchronization scheme, while the semantically identical classes could be safely inherited in another language that provides an entirely different synchronization scheme.Consider following cases where benefit of inheritance is lost.Definition of new subclass K' of class of K necessitates re-definitions of methods in K as well as those in its ancestor classes.Modification of new method m of class K within the inheritance hierarchy incur modification of the methods in both parent and descendent classes of K.Definition of a method m might force the other methods including those to be defined at the subclass in future to follow a specific protocol which would not have been required had that method not existed. Encapsulated definition of mix-in classes would thus be very difficult.4. Analysis of Inheritance Anomaly When a concurrent object is in a certain state, it can accept only a subset of its entire set of messages in order to maintain its internal integrity. Such a restriction on acceptable messages is called synchronization constraint of concurrent object. Synchronization constraints specify the circumstances under which an object's methods may be invoked. Synchronization code is the portion of method code where object behavior with respect to synchronization is controlled. The synchronization code must always be consistent with the synchronization constraint of an object otherwise the object might accept a message that it really should not accept resulting in a semantical error during program execution. In order to program the synchronization code the programming language must provide some primitives for object wise synchronization like semaphores, guards, etc. We will consider well known example of bounded buffer in various synchronization scheme and see different ways in which Inheritance Anomaly can appears.Let us first consider Bounded Buffer with put and get operation executing concurrently (See Example 1). The synchronization scheme in this example is called behavior abstraction, a variant of the accept-set based scheme. It is object-based and each object has behavior and mailbox. On receiving a message, an object can send messages to any of its acquaintances, any object referenced in the received message, and any objects created during execution of the script. An object's mailbox holds messages that have arrived but not yet been processed. A object becomes locked when it begins executing a...

Other Essays On Inheritance Anomaly In Object Oriented Programming

Women In Middle-Eastern Countries Essay

705 words - 3 pages Magazine Article Life away from home Imagine Living somewhere, and having no rights as a woman. Imagine being someone's property, treated like an object for your whole life. Imagine being bashed by your own husband, which is perfectly legal, for giving your own opinion. These are just a few of the differences between our lives and those of the women in many Middle-Eastern Countries.The Islam religion, and the Koran, has many strict "rules

Dynamic Programming for Contests - Computer Science - Guide

1981 words - 8 pages . 2 Categories Dynamic programming problems in computing contests tend to fall into a couple of different cate- gories. This is by no means intended to be an exhaustive list, but this should be a helpful reference. Recognizing problems as knapsack-like or interval/tree based can lead to a solution more quickly, and thinking about how to deal with the base cases in each of these types is an instructive exercise. 2.1 Knapsack The general integer

FILM FINAL FOR GET OUT THE FILM - UNIVERSITY OF MISSISSIPPI - Essay

1011 words - 5 pages Film Sequence Analysis Final c Get Out is a film that sparked ample controversy with its racial storyline when it was released in 2017. The film addresses the subtle forms of racism that people of color, have to deal with in modern America. During a pivotal scene in Jordan Peele’s Get Out we are able to see the curiosity of the goal-oriented protagonist’s white and Asian counterparts by the way they observe, touch, and question him. The scene

The fashion channel case study analysis and recommendation - MBA - case study

619 words - 3 pages both of them will help bright their potential to play with regular fashion programs and fashion oriented programs. The fashionistas can make the CPM increase in order to improve their revenue. The planners/shoppers can improve the rating; therefore, the number of ad buyers increase. According to TFC Estimated Financials for 2006 and 2007 (Stahl, 2007), it shows that a greater percentage of net margin can be made with this scenario. The net

final exam assignment information technology - University of potomac - Assignment

1651 words - 7 pages mainstream and testing riddle, a fever - or for this situation, an entire industry - was conceived. Advanced Encryption Standard (AES) Propelled Encryption Standard (AES) Advanced Encryption Standard (AES) calculation for security as well as for incredible speed. Both equipment and programming execution are even quicker. New encryption standard prescribed by NIST to supplant DES. It can be actualized on different stages uniquely in little gadgets. It is

Social Change And The Position Of Women In Silla And Koryo

1573 words - 7 pages , but never would the daughter take over. "Silla women had more legal rights and a relatively high status is society." (Kim, p7) Such rights can be seen carried out into the Koryo dynasty. Rights included something like property inheritance. Women, regardless of their marital status had almost equal rights with men. By almost, it is meant that the sons had priorities, especially in land inheritances, but for other properties such as slaves

Informtion snd tecnolodgy future with aertifical inteligency - school - assignment

1810 words - 8 pages centers. new problems were caused by overloading organizational cyber operation centers with more data than humans could efficiently process [Mancuso et al. 2015]. Better training, improved skills, and additional personnel were not enough to keep pace with the growing amount of data which helps in IT sector. b) anomaly detection [Chandola et al. 2009], behavior analysis (which creates a white list of behavior parameters), simulation (to identify risks

Integrated Communication Marketing Final notes - Western Sydney - Notes

1091 words - 5 pages *spent*on*television*advertising*in* 2009.* * The*television*program*day*parts* Advertising*cost,*audience*characteristics*and*programming*appropriateness*vary*greatly*at*different* time*of*the*day.* * The*three*main*day*parts*are:* •! Daytime*–*appeals*first*to*adults*with*news*programs*and*then*to*children*with*special* programs*designed*for*them.*Afternoon*programming*appeals*to*people*working*at*home,* retirees*and*university*students

Literature Review of Leadership Development: How to make leadership more efficient - University of Queensland - Assignment

1395 words - 6 pages Literature Review of Leadership Development: How to make leadership more efficient Introduction How to make leadership more efficient? Leadership is not management or guidance. Leadership is the ability to inspire or influence others' goals to leaders, and a successful leader must convince his or her followers that they are a team or family, not just the relationship between the leader and the subordinates. If they have confidence in you and

PHysic EEI about the effects of lengths and amplitude for a pendulum - Indooroopilly state high school, 2018 - assignment

5144 words - 21 pages following equation (kinetic energy (KE) to mass (m) and speed (v)): KE = ½•m•v2 During the sequence of motions, the faster an object moves, the more kinetic energy that it possesses. In the application of the pendulum bob, the kinetic energy increases as it approaches the equilibrium position and decreases as it moves further away from the equilibrium position, as can be seen in figure 2 that demonstrates the value of KE at special points Figure 2 On

Advantages Of Commericals

730 words - 3 pages pretty good essay can use some imporvements good overall, nice order, and examplesThe Advantage of Commercials It began in the early 1940's and to this day still is in many of our lives, even more so then before. It's the TV that I'm referring to. The TV started only as only musicals on it,. But eventually proceeded up to today's oriented world, with movies, sports, and violence. Today more than 98% of all households have a TV. Over

Similar Papers

Computing Fields And How They Vary Orientation To Computer Science Essay

1003 words - 5 pages science requires significantly more math than all the other computing degrees, so a prospective student needs to be able to grasp mathematical concepts well. As a result of this focus on programming, this degree requires four programming classes, rather than the three that information technology and information systems must take. A bachelor’s degree will typically suffice in this field; however, some students pursue a master’s degree. Information

Computer Hardware Engineers Essay

889 words - 4 pages computer software and hardware promote positions on their web sites. People with experience using more than one object oriented programming language, and with the capability to show their ideas in a written report, and work well in a team are in short supply. Demand throughout Canada has been so high in some specialized software skills that a new head program has been opened with Citizenship and Immigration Canada. The purpose of the program is to

Research Paper Database Management Systems Mis Howard University Research Paper

3134 words - 13 pages contact lists in your cellphone or the records of high-scoring in a simple video game. In such cases, there would be little point and no justifiable expense in integrating a complex relational database engine into the computing platform because a simple flat database can fulfill the job. For information that is represented by objects, a user would use an Object-Oriented Database (OODB). OODBs are not successful or well-known as mainstream

Service Industries Essay

4312 words - 18 pages and theme parks, zoos, or campgrounds. A final way in which to categorize services is by what is transformed through the service. A service may transform a physical object, which occurs when something is repaired, altered, or improved. Having an article of clothing custom-made, a room remodeled, or an appliance repaired would involve transforming a physical object. Service division jobs may also change a consumer. Examples of changes to consumers