1 / 6

System Level Programming Software College of SCU

System Level Programming Software College of SCU. 四川大学软件学院 舒莉 Email: shuli@scu.edu.cn. Lab 14. Exception and Process/Thread. Practice 1 Show Current Time Practice 2 Add thread to DrawRect Practice 3 Add thread to database searching Practice 4 Two Thread Program.

Download Presentation

System Level Programming Software College of SCU

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. System Level ProgrammingSoftware College of SCU 四川大学软件学院 舒莉 Email: shuli@scu.edu.cn

  2. Lab 14. Exception and Process/Thread • Practice 1 Show Current Time • Practice 2 Add thread to DrawRect • Practice 3 Add thread to database searching • Practice 4 Two Thread Program 201001V1.1

  3. Practice 1 Show Current Time • Read and Run Helloworld1 • Read and Run Helloworld2 • Extend Helleloworld3 • Add WM_LBUTTONDOWN message handle case statement so that when you click the left button of your mouse, the time now can be shown just at the position where you click happens. • Tips: • GetLocalTime() • sprintf() • GetDC() amd ReleaseDC() 201001V1.1

  4. Practice 2 Add thread to DrawRect • Add thread to solve the problem in the program 201001V1.1

  5. Practice 3 Add thread to database searching • Add thread to solve the problem in the program • Part II of Exercise6 201001V1.1

  6. Practice 4 Two Thread Program • Read the program, before you run it, guess what the output should be. Then run it, and answer the following questions: • What is the problem in the program? • Give me the term that describe this phenomenon • Why this happen 201001V1.1

More Related