Results 1 to 17 of 17

Thread: What is Re-Entrant

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Berlin, Germany
    Posts
    64
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Talking Re: What is Re-Entrant

    My grandmother had a bedroom in her house that was non-re-entrant. If you shut the door on your way out, it would automatically lock and you couldn't get back in without taking the door off the hinges or climbing through the window... I do wonder why she never just bought another door knob... (My dad had to take her door off a couple of times lol) oh well!

    Katrina

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What is Re-Entrant

    That's more likely a deadlock Reentrancy is about having more than one entity operating on the same object (so reentrant room is when more than one person can fit there without spreading havoc).

  3. #3
    Join Date
    Jan 2006
    Location
    Socorro, NM, USA
    Posts
    29
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: What is Re-Entrant

    Quote Originally Posted by wysota
    That's more likely a deadlock Reentrancy is about having more than one entity operating on the same object (so reentrant room is when more than one person can fit there without spreading havoc).
    Hmm, I would say, reentrancy is a room with more than one door.

  4. #4
    Join Date
    Jan 2006
    Posts
    32
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: What is Re-Entrant

    Quote Originally Posted by Thomas
    Hmm, I would say, reentrancy is a room with more than one door.
    nice definition, I think it fits quite well

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What is Re-Entrant

    Quote Originally Posted by Thomas
    Hmm, I would say, reentrancy is a room with more than one door.
    Hmmm... I wouldn't agree... That would be two entry points, not reentrancy. Better would be to say that reentrancy is a bedroom with more than one bed. Why? Because it is not about entering the function, but about behaviour inside it. For me a room with more than one door is an example of a locking mechanism, like a semaphore.

  6. #6
    Join Date
    Jan 2006
    Location
    Socorro, NM, USA
    Posts
    29
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: What is Re-Entrant

    Exactly, wysota.

    It depends on the point of view what the bedrooom and the bed are. If the bed is a kind of member in the method bedroom, the doors represent bedroom using threads. In this way, every bed would represent another member inside the bedroom.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What is Re-Entrant

    The point is reentrancy is not about threads. An object may not be reentrant even in a single threaded environment.

    But let's leave that, we've come waaaaay offtopic (I like that smiley...)

  8. #8
    Join Date
    Jan 2006
    Location
    Socorro, NM, USA
    Posts
    29
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: What is Re-Entrant

    I know. It was meant as an example for other objects trying to call bedroom.

  9. #9
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What is Re-Entrant

    Guys,
    While I am going searching about this topic. I stumbled upon this link. Hope it will be useful
    http://publibn.boulder.ibm.com/doc_l..._safe_code.htm
    We can't solve problems by using the same kind of thinking we used when we created them

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.