📄 readme.txt
字号:
/* * README for XMK Application * Last Updated: 02/10/2005 */Summary:========Kernel with a main controlling shell thread. Can launch 5 otherapplication threads from the shell through the command line. - A linked list example, illustrating buffer memory allocation APIs - A semaphore example, illustrating the POSIX semaphore API - A producer consumer example, illustrating the message queue API - A timer example, illustrating software timer support - A gpio example, illustrating I/O supportApplications/Threads/Processes:===============================SHELL: * Command line shell capable of listing and launching otherapplication threads. Type "help" at the command line for moreinformation.LLIST: * Linked list implementation illustrating block memory allocationAPIs.SEM: * Semaphore example, with two threads using semaphores tosynchronize. Uses two semaphores to rendezvous with created threads. * Uses one semaphore as the protection semaphore.PRODCON: * Producer consumer example, using a single blocking messagequeue. Producer keeps feeding data to the queue while the receiver * tries to fetch the data from the queue. Both producer and consumerautomatically block when the queue gets full.TIMERTEST: * Timer example, illustrating software timers. Different threadssleep for different amounts of time (specified in some time unit). * They also dump the value of the kernel tick at different times.TICTAC: * Simple AI tictac toe. Has 9 levels of recursion in AI computationloop. Stack requirements might be high accordingly. * Main thread launches the tictac thread with a dynamically assignedstack. Therefore the burden of stack allocation and * assignment for each thread can be pushed to the kernel. Stackparameters passed in pthread_attr_t structure.GPIO: * Sends a set of values to toggle the I/O bits.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -