page1
function in main-thread
function in poll-thread