Add threadlocal demo and join demo