add share memory interface under different OS