OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 0/4] Object creation with a specified id
Re: [RFC][PATCH 0/4] Object creation with a specified id [message #29660 is a reply to message #29092] Tue, 15 April 2008 03:06 Go to previous message
Nick Andrew is currently offline  Nick Andrew
Messages: 1
Registered: April 2008
Junior Member
On Fri, Apr 04, 2008 at 04:51:29PM +0200, Nadia.Derbey@bull.net wrote:
>    . echo "LONG XX" > /proc/self/next_id
>      next object to be created will have an id set to XX
>    . echo "LONG<n> X0 ... X<n-1>" > /proc/self/next_id
>      next object to be created will have its ids set to XX0, ... X<n-1>
>      This is particularly useful for processes that may have several ids if
>      they belong to nested namespaces.

How do you handle race conditions, i.e. you specify the ID for the
next object to be created, and then some other thread goes and creates
an object before your thread creates one?

Nick.
-- 
PGP Key ID = 0x418487E7                      http://www.nick-andrew.net/
PGP Key fingerprint = B3ED 6894 8E49 1770 C24A  67E3 6266 6EB9 4184 87E7
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [RFC] Control Groups Roadmap ideas
Next Topic: [PATCH 0/14 (3 subsets)] Make tuns and vlans devices work per-net.
Goto Forum:
  


Current Time: Sun Aug 11 01:08:51 GMT 2024

Total time taken to generate the page: 0.02752 seconds