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

Advantages Of Commericals Essay

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

Psychoanalysis And Freud

2420 words - 10 pages object relations, have the greatest impact on later psychological development. The influence of the care givers, especially during infancy, leaves a lasting imprint on the personality. Emphasis on the object-relations theory developed by Melanie KLEIN characterizes psychoanalysis in much of Britain and Latin America. In the United States a particular aspect of object relations, namely their effects on the sense of self and on self-esteem, are

Help On Oliver Twsit By Charles Dickens

4326 words - 18 pages in the hazy zone between sleep and waking, at the precise time when dreams and nightmares are born from "the mere silent presence of some external object." Indeed, Fagin is meant to inspire nightmares in child and adult readers alike. Perhaps most frightening of all, though, is Chapter 52, in which we enter Fagin's head for his "last night alive." The gallows, and the fear they inspire in Fagin, are a specter even more horrifying to contemplate

Summarize Relevant Aspects Of Jungian Psychology And Demonstrate Their Influence On Either A Child Of Our Time Or A Midsummer Marriage

3454 words - 14 pages of Jung’s theories, but also fully incorporated them into his life; using the theories as an almost spiritual base from which he could ascertain a clear understanding of his ‘self’ (i.e. analysing his own dreams in a Jungian fashion). This is evident in Tippett’s own writings. Throughout his book, Tippett on Music, Tippet makes several references to Jung, whether discussing the psyche of others, or indeed writing about ‘

Does Organizational Management Theory Have The Answer To Managing Service Organizations And The People That Work There?

3440 words - 14 pages Leadership wherein leaders consult their subordinates for their ideas and to integrate it into the decision-making of the organization as their contribution. Lastly, Achievement-Oriented Leadership. The leader set a high goal for his or her subordinates as a pattern for their high level performance.Vroom's Expectancy TheoryThe expectancy theory is consists of cognition and emotion that supposed people to use up energy in order to pursue goals in order to

Cultural Diversity

3271 words - 14 pages people in different cultures often have different ideas about the same object and what is acceptable in one culture may not necessarily be so in another. So an understanding of the culture is central to successful marketing. Therefore a diverse workforce is a great benefit to the company as to develop a successful marketing strategy the marketing manager must have knowledge of the needs and wants of potential buyers. For example Campbell soup lost

Entering Foreign Markets(Taiwan)

8973 words - 36 pages which is strict. No food advertisements featuring premiums can be directed at children.SOME IMPORTANT FACTS ABOUT TV ADVERTISING IN TAIWAN-Government pronounced Mandarin as the official language in Taiwan end restricted the use of Fukienese to only 20% of television programming-With the exception of news, all television programs are subject to review by the Government Information Office (GIO)-Commercial air time--advertising--is limited to ten

Humor In Cross-Cultural Advertising

5574 words - 23 pages object of the humor in the advertising appeal.In this study we examine both cognitive mechanisms and the psychodynamic approach of the impact of themes of humor. These themes are categorized as either aggressive (including sexual and aggressive) or non-aggressive. Each of these themes can be expressed through incongruity-resolution humor (Hempelmann and Ruch 2005). This study will then illustrate the differences in response to these themes in

Canada's Part In The North American Free Trade Agreement

2907 words - 12 pages , and IV) This increase in investment came from a variety of things like petroleum, and transportation equipment to manufacturing industries.Another object that increased the flow of money coming into Canada was the Canadian dollar. It initially rose 4.1% from 1989 to 1991. "My suspicion is that the Canadian dollar was part of the (free trade) deal", state Dickson.(Halberstadt, 9). From 1989 to 1994 Canada was able to keep a 2.25% short term

J.A.J.M Child Psychiatry

3677 words - 15 pages A vital proceeding in the specialty of child and adolescent psychiatry was the recognition of juvenility or childhood as a unique phase of life with its own developmental stages, beginning with the infant and eventually continuing through adolescence (Developmental psychology: childhood and adolescence). As early as the late 1800's, the term "child psychiatry" was used as a sub-title in Manheimer's monograph "Les Troubles Mentaux de I'Enfance

La Senza

7959 words - 32 pages no stability as the company constantly lays off their people- multiple mass layoffs within a single year.Technological developmentThe global in-house information technology organization employs world-class IT professionals with exceptional capability in business systems, programming and technical consulting. Beyond providing behind-the-scenes technology support, this team operates as trusted business advisors working with the brand to support its

Similar Papers

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

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

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

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