Sharedmem

Please review.