Re: reentrant ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "aq" <aquynh@xxxxxxxxx>

> Anybody please explain to me, in the context below, what "reentrant"
means?

It is a useful, memory-saving technique used for multiprogrammed,
time-sharing systems.
Reentrant functions are functions that allow multiple concurrent invocations
of a single program(by different users) that do not interfere with each
other.
Share the code, but not the data.
Conditions to be reentrant:
 It uses all shared variables in an atomic way, unless each is allocated to
a specific instance of the function.
 It does not call non-reentrant functions.
 It does not use the hardware in a non-atomic way.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux