Add some documentation to threading.jl