1、 了解系統(tǒng)調(diào)用pipe()的功能和實(shí)際原理
2、 編寫一段程序,使用管道實(shí)現(xiàn)父子進(jìn)程之間的通信
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建一個(gè)子進(jìn)程
b) 子進(jìn)程調(diào)用函數(shù)write()向父進(jìn)程發(fā)送自己的進(jìn)程ID和字符串” s sending a message to parent.\n”。
c) 父進(jìn)程調(diào)用函數(shù)read()通過(guò)管道讀出子進(jìn)程發(fā)來(lái)的消息,將消息輸出屏幕,然后終止
1、 了解系統(tǒng)調(diào)用fork()、execl()、exit()、getpid()和waitpid()的功能和實(shí)現(xiàn)過(guò)程
2、 編寫一段程序?qū)崿F(xiàn)以下功能:
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建兩個(gè)子進(jìn)程
b) 父進(jìn)程重復(fù)顯示字符串”parent:”,并使用函數(shù)getpid()顯示自己的進(jìn)程ID。
c) 兩個(gè)子進(jìn)程分別重復(fù)顯示字符串”child:”,并使用函數(shù)getpid()顯示自己的進(jìn)程ID
3、 編寫一段程序?qū)崿F(xiàn)以下功能:
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建一個(gè)子進(jìn)程
b) 子進(jìn)程顯示自己的進(jìn)程ID和字符串": The child is calling an exec.\n",然后通過(guò)execl()調(diào)用系統(tǒng)命令ps顯示當(dāng)前運(yùn)行的進(jìn)程情況,從而更換自己的執(zhí)行代碼,最后調(diào)用exit()結(jié)束。
c) 父進(jìn)程顯示自己的進(jìn)程ID和字符串” ": The parent is waiting for child to exit.\n ",然后調(diào)用waitpid()等待子進(jìn)程結(jié)束,并在子進(jìn)程結(jié)束后顯示”The parent exit.\n
16 relay output channels and 16 isolated digital input channels
LED indicators to show activated relays
Jumper selectable Form A/Form B-type relay output channel
Output status read-back
Keep relay output values when hot system reset
High-voltage isolation on input channels(2,500 VDC)
Hi ESD protection(2,00VDC)
High over-voltage protection(70VDC)
Wide input range(10~50VDC)
Interrupt handling capability
High-density DB-62 connector
Board ID
Atheros無(wú)線芯片AR-6000系列wince 6驅(qū)動(dòng)源代碼(這東西我也沒(méi)用過(guò)別問(wèn)我,我是搜別的wince資源搜到的)
AR6K SDIO support. Requires firmware 1.1 on SD13 cards.
readme:
Atheros Communications
AR6001 WLAN Driver for SDIO installation Read Me
March 26,2007
(based on k14 fw1.1)
Windows CE Embedded CE 6.0 driver installation.
1. Unzip the installation file onto your system (called installation directory below)
2. Create an OS design or open an existing OS design in Platform Builder 6.0.
a. The OS must support the SD bus driver and have an SD Host Controller driver (add these from Catalog Items).
b. Run image size should be set to allow greater than 32MB.
3. a. From the Project menu select Add Existing Subproject...
b. select AR6K_DRV.pbxml
c. select open
This should create a subproject within your OS Design project for the AR6K_DRV driver.
4. Build the solution.
轉(zhuǎn)自Tony嵌入式,原文地址:http://www.cevx.com/bbs/dispbbs.asp?boardID=4&ID=11762&page=1