A Software-Hardware Integration Framework for Multiprocessor System-On-Chip Based on Tightly-Coupled Thread Model