Wiley Professional Ajax By Nicholas C. Zakas, Jeremy McPeak & Joe Fawcett
Professional Ajax provides a developer-level tutorial of Ajax techniques, patterns, and use
cases.
本書介紹了在Microsoft Windows 98、Microsoft Windows NT 4.0和Windows NT 5.0下程序?qū)懽鞯姆椒?。這些程序用C語言編寫并使用原始的Windows Application Programming Interface(API)。如在本章稍后所討論的,這不是寫作Windows程序的唯一方法。然而,無論最終您使用什么方式寫作程序,了解Windows API都是非常重要的。
Structure the sources so that the compression and decompression code
form a library usable by any program, and write both gzip and zip on
top of this library. This would ideally be a reentrant (thread safe)
library, but this would degrade performance. In the meantime, you can
look at the sample program zread.c.
Design Specification
Introduction
Goals and Objectives
GameForge is a graphical tool used to aid in the design and creation of video games. It attempts to bring game development down to a level that any computer savvy user can understand, without requiring masterful programming ability. A user with limited Microsoft DirectX and/or Visual C++ programming knowledge will be able to construct a basic, 2-D arcade game. GameForge limits the amount of actual code written by the user, if not eliminating it completely. It will also assist experienced programmers in generating the Microsoft DirectX and Microsoft Windows9x overhead necessary for basic game construction, allowing them to concentrate on more detailed game design issues and implementation.
1、 了解系統(tǒng)調(diào)用fork()、execl()、exit()、getpid()和waitpid()的功能和實現(xiàn)過程
2、 編寫一段程序?qū)崿F(xiàn)以下功能:
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建兩個子進程
b) 父進程重復顯示字符串”parent:”,并使用函數(shù)getpid()顯示自己的進程ID。
c) 兩個子進程分別重復顯示字符串”child:”,并使用函數(shù)getpid()顯示自己的進程ID
3、 編寫一段程序?qū)崿F(xiàn)以下功能:
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建一個子進程
b) 子進程顯示自己的進程ID和字符串": The child is calling an exec.\n",然后通過execl()調(diào)用系統(tǒng)命令ps顯示當前運行的進程情況,從而更換自己的執(zhí)行代碼,最后調(diào)用exit()結(jié)束。
c) 父進程顯示自己的進程ID和字符串” ": The parent is waiting for child to exit.\n ",然后調(diào)用waitpid()等待子進程結(jié)束,并在子進程結(jié)束后顯示”The parent exit.\n
This set of simulation files performs a computational complexity performance comparison of the two methods mentioned in the paper. The source is ANSI-C compliant, hence any C-compiler can be used to compile the source code. It has been tested using Visual Studio.net C++ and TI code composer studio C compiler for the TMS320C6701. Note that the performance comparison may be different for different platforms.