1.modified single pthread