擴展的動態內存機制 任務綜述 本任務擴展了自己私有的內存管理機制。首先使用預先規劃的思想,使用預先分配的內存池和內存分區,再通過使用消息隊列作為內存池的管理機制處理內存塊分配與釋放的過程,而消息隊列中保存的是每個預先申請內存塊的地址。當用戶需要分配一個內存塊時,使用msgQReceive() 函數從消息隊列中獲取一個相應大小的內存塊地址;當用戶需要釋放一個內存塊時,則使用msgQSend()函數將內存塊首地址發送回消息隊列中。通過這種方法,減少了內存反復申請與釋放產生外部碎片的可能,并能夠有效利用預先分配的思想減少內部碎片。同時也通過消息隊列的特性實現了方便的內存塊申請與釋放的管理操作。 同時,本系統作為擴展的動態內存管理機制,引入了定制的內存分配與釋放功能,使用了互斥機制保證操作安全性和一系列告警機制。在保證內存分配與釋放安全有序的基礎上,還增加了管理監視機制。 其系統具體實現參照系統實現部分。
上傳時間: 2017-06-11
上傳用戶:569342831
“This book is a tremendous achievement. You owe it to yourself to have a copy on your shelf. The chapter on iostreams is the most comprehensive and understandable treatment of that subject I’ve seen to date.”
標簽: achievement tremendous yourself shelf
上傳時間: 2017-06-12
上傳用戶:270189020
This manual describes SAMSUNG s S3C2410A 16/32-bit RISC microprocessor. This product is designed to provide hand-held devices and general applications with cost-effective, low-power, and high-performance micro-controller solution in small die size. To reduce total system cost, the S3C2410A includes the following components separate 16KB Instruction and 16KB Data Cache, MMU to handle virtual memory management, LCD Controller (STN & TFT), NAND Flash Boot Loader, System Manager (chip select logic and SDRAM Controller), 3-ch UART, 4-ch DMA, 4-ch Timers with PWM, I/O Ports, RTC, 8-ch 10-bit ADC and Touch Screen Interface, IIC-BUS Interface, IIS-BUS Interface, USB Host, USB Device, SD Host & Multi-Media Card Interface, 2-ch SPI and PLL for clock generation.
標簽: This microprocessor describes S3C2410A
上傳時間: 2013-11-30
上傳用戶:GavinNeko
introduce the reader to the fundamentals of modelling, analysis, and simulation of mobile fading channels
標簽: fundamentals simulation introduce the
上傳時間: 2013-12-20
上傳用戶:bruce
File: dir.h ScanOneDirectorySector(unsigned long sector, char *name) extern void MakeFileName(char *inname, char *outname) ScanOneDirectorySector(unsigned long sector, char *name) extern void MakeFileName(char *inname, char *outname)
標簽: ScanOneDirectorySector MakeFileName unsigned extern
上傳時間: 2014-12-04
上傳用戶:hn891122
File: dir_39 canOneDirectorySector(unsigned long sector, char *name) extern void MakeFileName(char *inname, char *outname) ScanOneDirectorySector(unsigned long sector, char *name) extern void MakeFileName(char *inname, char *outname)
標簽: canOneDirectorySector MakeFileName unsigned extern
上傳時間: 2014-01-20
上傳用戶:894898248
client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }
上傳時間: 2017-07-29
上傳用戶:wab1981
Fortran - Tóm tắ t nộ i dung mô n họ c Các khái niệ m và yế u tố trong ngô n ngữ lậ p trình FORTRAN. Các câ u lệ nh củ a ngô n ngữ FORTRAN. Cơ bả n về chư ơ ng chư ơ ng dị ch và mô i trư ờ ng lậ p trình DIGITAL Visual Fortran. Viế t và chạ y các chư ơ ng trình cho các bài toán đ ơ n giả n bằ ng ngô n ngữ FORTRAN.
上傳時間: 2013-12-25
上傳用戶:songrui
1.執行「解kavo步驟1.bat」重開機 2.執行「解kavo步驟2.bat」 ★:病毒解完後,如有插入隨身碟時請按住「Shift鍵」不要放開直到偵測完畢後 再執行「刪除隨身碟中的autorun.bat」 將會刪除隨身碟(含所有磁碟)中的autorun.inf 順便建立同檔名的資料夾,用來防止再被被毒寫入自動執行檔。
上傳時間: 2017-08-11
上傳用戶:yan2267246
:IBM WebSphere Application Server提供了從電子商務的構建、發布到管 理的能力。其標準版提供了開放、標準的平臺。WebSphere Application Server包 括Servlet 運行引擎、高性能的數據庫連接程序,提供預連接、會話和狀態管理 的應用服務,WebSphere 還支持XML 文檔結構。另外,WebSphere 還支持JSP 的1.0版本,Servlet 的2.1版本。有高速的數據庫緩沖聯結池(支持DB2 Universal Database,Oracle,Microsoft SQL Server等數據庫。)
標簽: Application WebSphere Server IBM
上傳時間: 2017-08-17
上傳用戶:xmsmh