}intmain(){pthread_rwlock_init(&rwlock,NULL);// 创建3个写线程,5个读线程pthread_twtids[3], rtids[5];for(inti =0; i <3; i++) {pthread_create(&wtids[i],NULL, writeNum,NULL); }for(inti =0; i <5; i++) {pthread_create(&rtids[i],NULL, readNum,NULL); }// 设置线程分离...