doc: manual compile + thread example