Research

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Creating Semaphore Objects for OSEK

    7 answers - 427 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    HI All,
    Since there is no semaphore objects in SEK , i need to create
    it for my task. Since semaphore objects are automic in nature , is
    there any method to create an atomic variable? Some S's have some
    objects called atomic_t but in SEK there is nothing like this. Can
    anybody give me some pointers to create an atomic variables and create
    semaphore operations?
    regards
    Anks
  • No.1 | | 891 bytes | |


    Mr_Nayak wrote:
    HI All,
    Since there is no semaphore objects in SEK , i need to create
    it for my task. Since semaphore objects are automic in nature , is
    there any method to create an atomic variable? Some S's have some
    objects called atomic_t but in SEK there is nothing like this. Can
    anybody give me some pointers to create an atomic variables and create
    semaphore operations?

    regards
    Anks

    If your process does not have a Test And Set opcode, look up Dekker's
    Algorithm or Peterson's algorithm. Then implementing the P(s) and V(s)
    semaphore operations are easy. Any decent Systems text book
    should have it. I have an ancient one called
    An Introduction to Systems
    Harvey M. Deitel
    (it is so old, ity doesn't have Peterson's Algorithm.)

    What is SEK anyway?

    Good luck,
    Ed

  • No.2 | | 887 bytes | |


    Mr_Nayak wrote:
    HI All,
    Since there is no semaphore objects in SEK , i need to create
    it for my task. Since semaphore objects are automic in nature , is
    there any method to create an atomic variable? Some S's have some
    objects called atomic_t but in SEK there is nothing like this. Can
    anybody give me some pointers to create an atomic variables and create
    semaphore operations?

    regards
    Anks

    If your CPU does not have a Test And Set opcode, look up Dekker's
    Algorithm or Peterson's algorithm. Then implementing the P(s) and V(s)
    semaphore operations are easy. Any decent Systems text book
    should have it. I have an ancient one called
    An Introduction to Systems
    Harvey M. Deitel
    (it is so old, ity doesn't have Peterson's Algorithm.)

    What is SEK anyway?

    Good luck,
    Ed

  • No.3 | | 946 bytes | |

    Wed, 13 Sep 2006 02:58:07 -0700, Mr_Nayak wrote:

    Since there is no semaphore objects in SEK , i need to create
    it for my task. Since semaphore objects are automic in nature , is
    there any method to create an atomic variable? Some S's have some
    objects called atomic_t but in SEK there is nothing like this. Can
    anybody give me some pointers to create an atomic variables and create
    semaphore operations?

    SEK/VDX is an industry standard specification. Look in the 2.2.3 spec
    under resource management, Sections 8 and 13.4 (DeclareResource(),
    GetResource(), and ReleaseResource() ).

    Are you writing your own RTS to the spec? Might be easier to buy a
    compliant one such as ThreadX. If you don't know how to perform "atomic"
    operations, you're either (1) a student asking for homework help, or (2)
    in over your head. If (2), hire some knowledgeable help.

    ~Dave~
  • No.4 | | 1634 bytes | |

    Hi All,
    Thanks for the reply.
    Dave i am aware of the Resource concept in SEK . I am writing some
    adapters where i have to have some semaphores according to some
    standard. Its not that i am not aware of atomic operations (Which
    almost all S books will give) i am not aware how to create or declare
    these variables. I think my question is not clear here. If somebody
    asks some questions that doesnot mean they are students or they dont
    have any knowledge or its either their experience level is less or
    they are new to certain areas. I bet you too dont know EVERYTHING which
    you can ask yourself.
    Thanks for the reply

    Anks

    Dave wrote:
    Wed, 13 Sep 2006 02:58:07 -0700, Mr_Nayak wrote:

    Since there is no semaphore objects in SEK , i need to create
    it for my task. Since semaphore objects are automic in nature , is
    there any method to create an atomic variable? Some S's have some
    objects called atomic_t but in SEK there is nothing like this. Can
    anybody give me some pointers to create an atomic variables and create
    semaphore operations?

    SEK/VDX is an industry standard specification. Look in the 2.2.3 spec
    under resource management, Sections 8 and 13.4 (DeclareResource(),
    GetResource(), and ReleaseResource() ).

    Are you writing your own RTS to the spec? Might be easier to buy a
    compliant one such as ThreadX. If you don't know how to perform "atomic"
    operations, you're either (1) a student asking for homework help, or (2)
    in over your head. If (2), hire some knowledgeable help.
    --
    ~Dave~

  • No.5 | | 669 bytes | |

    13 Sep 2006 20:16:48 -0700, "Ed Prochak" <edprochak@gmail.com>
    wrote:
    >What is SEK anyway?


    SEK is the acronym for ' Systeme und deren Schnittstellen
    die Elektronik im Kraftfahrzeug' which translates to ' Systems and
    the Corresponding Interfaces for Automotive Electronics' in English.

    It is an organization that has produced specifications for an embedded
    S (and a lot of related things) primarily intended for the automotive
    industry. The S specification is also referred to as SEK.

    More details at http://www.osek-vdx.org/

    Have a nice day,
    Pradeep
  • No.6 | | 1859 bytes | |

    14 Sep 2006 23:45:44 -0700, "Mr_Nayak" <anoop.nayak@gmail.com>
    wrote:
    >Dave wrote:
    >Wed, 13 Sep 2006 02:58:07 -0700, Mr_Nayak wrote:
    >>

    >Since there is no semaphore objects in SEK , i need to create
    >it for my task.
    >>

    >SEK/VDX is an industry standard specification. Look in the 2.2.3 spec
    >under resource management, Sections 8 and 13.4 (DeclareResource(),
    >GetResource(), and ReleaseResource() ).
    >>

    >Dave i am aware of the Resource concept in SEK . I am writing some
    >adapters where i have to have some semaphores according to some
    >standard.


    Fixed top posting. Please see

    Since you are aware of the Resource concept in SEK, I believe you
    would be able to use Resources to control access to, well, resources.

    Since you need to implement semaphores according to 'some standard', I
    suggest that you check if the requirements of 'some standard' are
    compatible with the facilities of SEK.

    Section 1.1 of SEK specification 2.2.3 makes it very clear that SEK
    intentionally left out support of dynamic generation of system
    objects. S specifications like PSIX allow dynamic generation
    of system objects. If you want something like that in your adapters,
    it would be best to look for an S *not* based on SEK. You could add
    such features to an SEK implementation. However, doing so would very
    likely be a lot more difficult, error prone and expensive than using
    an S that directly supports those features.

    Have a nice day,
    Pradeep
    All opinions are mine and do not represent the views or
    policies of my employer.
    R Pradeep Chandran rpc AT pobox DT com
  • No.7 | | 2345 bytes | |


    Pradeep Chandran wrote:

    14 Sep 2006 23:45:44 -0700, "Mr_Nayak" <anoop.nayak@gmail.com>
    wrote:
    >Dave wrote:
    >Wed, 13 Sep 2006 02:58:07 -0700, Mr_Nayak wrote:
    >>

    >Since there is no semaphore objects in SEK , i need to create
    >it for my task.
    >>

    >SEK/VDX is an industry standard specification. Look in the 2.2.3 spec
    >under resource management, Sections 8 and 13.4 (DeclareResource(),
    >GetResource(), and ReleaseResource() ).
    >>

    >Dave i am aware of the Resource concept in SEK . I am writing some
    >adapters where i have to have some semaphores according to some
    >standard.
    >

    Fixed top posting. Please see

    Since you are aware of the Resource concept in SEK, I believe you
    would be able to use Resources to control access to, well, resources.

    Since you need to implement semaphores according to 'some standard', I
    suggest that you check if the requirements of 'some standard' are
    compatible with the facilities of SEK.

    Section 1.1 of SEK specification 2.2.3 makes it very clear that SEK
    intentionally left out support of dynamic generation of system
    objects. S specifications like PSIX allow dynamic generation
    of system objects. If you want something like that in your adapters,
    it would be best to look for an S *not* based on SEK. You could add
    such features to an SEK implementation. However, doing so would very
    likely be a lot more difficult, error prone and expensive than using
    an S that directly supports those features.

    Have a nice day,
    Pradeep
    All opinions are mine and do not represent the views or
    policies of my employer.
    R Pradeep Chandran rpc AT pobox DT com

    HI Pradeep,
    Thanks for the reply. As you said SEK doesnt support dynamic creation
    of objects i am facing the problem. You might be knowing that it wont
    support malloc and everything should be static. What i need to do is
    write some wraper above the SEK which will make sure that my
    application which is independent of S should work. So i dont have a
    chance of opting other S. Anyways thanks for the reply.

    Anoop

Re: Creating Semaphore Objects for OSEK


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Research"

EMSDN.COM