Implementations of a queue in C with algoritmo BFS, that calculates the minimum distance in a graph.
標簽: Implementations calculates algoritmo distance
上傳時間: 2017-08-26
上傳用戶:z754970244
Generic template class library for message queue implementation, uses pthread mutex.
標簽: implementation template Generic library
上傳時間: 2013-12-18
上傳用戶:2404
a simple M/M/1 queue simulation with poession process
標簽: simulation poession process simple
上傳時間: 2017-09-01
上傳用戶:啊颯颯大師的
Implementation of a queue using a Linklist.
標簽: Implementation Linklist queue using
上傳時間: 2014-01-19
上傳用戶:2467478207
參照棧類模板的例子編寫一個隊列類模板class <T> Queue,私有成員包括:隊首指針Front,隊尾指針Tail,隊列容積max。實現:構造函數Queue,復制構造函數Queue,析構函數~Queue,入隊函數In,出隊函數Out(每次出隊,后面的元素自動前移一位),判隊列空函數Empty。并分別用隊列類模板定義int和double對象,通過實例調用各個成員函數。
標簽: Queue 函數 double class Front Empty 隊列 Tail 模板 Out
上傳時間: 2020-05-04
上傳用戶:1qw2e3r4t5y6u7i8
FeaturesThe following standard features are provided.• Choice of RTOS scheduling policy1. Pre-emptive:Always runs the highest available task. Tasks of identical priorityshare CPU time (fully pre-emptive with round robin time slicing).2. Cooperative:Context switches only occur if a task blocks, or explicitly callstaskYIELD().• Co-routines (light weight tasks that utilise very little RAM).• Message queues• Semaphores [via macros]• Trace visualisation ability (requires more RAM)• Majority of source code common to all supported development tools• Wide range of ports and examples
上傳時間: 2013-10-13
上傳用戶:13162218709
This example shows how to update at regulate period the WWDG counter using theEarly Wakeup interrupt (EWI). The WWDG timeout is set to 262ms, refresh window set to 41h and the EWI isenabled. When the WWDG counter reaches 40h the EWI is generated and in the WWDGISR the counter is refreshed to prevent a WWDG reset and led connected to PC.07is toggled.The EXTI line9 is connected to PB.09 pin and configured to generate an interrupton falling edge.In the NVIC, EXTI line9 to 5 interrupt vector is enabled with priority equal to 0and the WWDG interrupt vector is enabled with priority equal to 1 (EXTI IT > WWDG IT). The EXTI Line9 will be used to simulate a software failure: once the EXTI line9event occurs (by pressing Key push-button on EVAL board) the correspondent interruptis served, in the ISR the led connected to PC.07 is turned off and the EXTI line9pending bit is not cleared. So the CPU will execute indefinitely EXTI line9 ISR andthe WWDG ISR will never be entered(WWDG counter not updated). As result, when theWWDG counter falls to 3Fh the WWDG reset occurs.If the EXTI line9 event don抰 occurs the WWDG counter is indefinitely refreshed inthe WWDG ISR which prevent from WWDG reset. If the WWDG reset is generated, after resuming from reset a led connected to PC.06is turned on. In this example the system is clocked by the HSE(8MHz).
上傳時間: 2013-11-11
上傳用戶:gundamwzc
項目描述: Env_audit is a program that ferrets out everything it can about the environment. It looks for process IDs, UID, GID, signal masks, umask, priority, file descriptors, and environmental variables. It comes with test configurations for anacron, apache, atd, crond, GDB, inittab, logrotate, PHP, pppd, procmail, rsh, rxvt, sendmail, SSH, stunnel, sudo, xinetd, and xterm. env_audit是一個搜索有關環境的所有東西的程序。它查詢進程IDs,UID, GID,信號掩碼,umask,優先權,文件描述符,和環境變量。它提供了用于anacron, apache, atd, crond, GDB, inittab, logrotate, PHP, pppd, procmail, rsh, rxvt, sendmail, SSH, stunnel, sudo, xinetd, 和xterm的測試配置。 類別: Development Status: 5 - Production/Stable Environment: Console (Text Based) Intended Audience: System Administrators License: GNU General Public License (GPL) Operating System: POSIX Topic: Security
標簽: environment everything Env_audit ferrets
上傳時間: 2013-12-02
上傳用戶:qweqweqwe
基本算法思想 OPT:該算法的基本思想是用二維數組page2[40][2] 的第一列存儲裝入內存的頁面,而第二列用作標記位計數器。每當發生缺頁時,就從內存中調出一頁,首先將內存中的頁面一一與要調入內存中的頁面之后的頁面比較,如果兩個頁面不相等,則內存中相應的頁面的標記位計數器加一,直至到有相等的頁面,則該頁面的比較停止,再重復以上操作,直至內存中的頁面全部比較完。然后找出內存中頁面的標記位最大的頁面,而該頁就是要置換出來的頁。 FIFO: 該算法的基本思想是用隊列queue存儲內存中的頁面,隊列的特點是先進先出,與該算法是一致的,所以每當發生缺頁時,就從隊頭刪除一頁,即隊頭指針加一,而從隊尾加入缺頁,隊尾指針加一。 LRU: 該算法的基本思想是用二維數組page2[40][2] 的第一列存儲裝入內存的頁面,而第二列用作標記位計數器。每當使用頁面時,該頁面的標記位計數器加一。發生缺頁時,就從內存中頁面標記最小的一頁,調出該頁,并且該頁后面的頁面在數組中的位置前移,而缺頁就放在數組后面。
上傳時間: 2013-12-26
上傳用戶:lwwhust
算法ebook(10部算法經典著作的合集) 算法ebook> 10部算法經典著作的合集 chm格式 (1)Fundamentals of Data Structures by Ellis Horowitz and Sartaj Sahni (2)Data Structures, Algorithms and Program Style Using C by James F. Korsh and Leonard J. Garrett (3)Data Structures and Algorithm Analysis in C by Mark Allen Weiss (4)Data Structures: From Arrays to Priority Queues by Wayne Amsbury (5)Information Retrieval: Data Structures & Algorithms edited by William B. Frakes and Ricardo Baeza-Yates (6)Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson, and Ronald L. Rivest (7)Practical Data Structures in C++ by Bryan Flamig (8)Reliable Data Structures in C by Thomas Plum (9)Data Structures and Algorithms Alfred V. Aho, Bell Laboratories, Murray Hill, New Jersey John E. Hopcroft, Cornell University, Ithaca, New York Jeffrey D. Ullman, Stanford University, Stanford, California (10)DDJ Algorithms and Data Structures Articles
標簽: ebook Fundamentals Structures Ellis
上傳時間: 2015-04-04
上傳用戶:tfyt