Add the Sync ViewNum function(Use thread to sync)