my english document for threadx
2013-06-27 09:37
519 查看
threadX is a real-time OS.it is featured with small code scale,high reliability and easy to use.
In last article, I have mentioned freeRtos which is also a real time os. then what is the difference between threadX and freeRTOS?
1.the system status
threadX has five system status:
1).execution : when a thread is in execution status indicates it occupies the CPU while only one thread can occupy cpu at one time.
2).suspend: when a thread is suspend .it means the thread will never occupied CPU again until it get the source it wait for or another thread open it.
3).ready : when a thread is ready .that means the thread is located in a waiting queue where the CPU will choose one to execute after the CPU finished the current execution thread.
4).terminal:when a thread is terminaled by itself or other thread.it will never be execute untill the thread is delete then reinit .
5).complete: a thread is only complete by itself and has the same condition to execute with terminal.
2.the communicaiton between threads
1)semphore:which can function as a flag whatever the value is to triger a event handler or a protection mechinism to protect system source.
2)event flags:
3)queue:it can transfer spefic message from one thread to another. we care most what the message is.
4)mutex:it is also
In last article, I have mentioned freeRtos which is also a real time os. then what is the difference between threadX and freeRTOS?
1.the system status
threadX has five system status:
1).execution : when a thread is in execution status indicates it occupies the CPU while only one thread can occupy cpu at one time.
2).suspend: when a thread is suspend .it means the thread will never occupied CPU again until it get the source it wait for or another thread open it.
3).ready : when a thread is ready .that means the thread is located in a waiting queue where the CPU will choose one to execute after the CPU finished the current execution thread.
4).terminal:when a thread is terminaled by itself or other thread.it will never be execute untill the thread is delete then reinit .
5).complete: a thread is only complete by itself and has the same condition to execute with terminal.
2.the communicaiton between threads
1)semphore:which can function as a flag whatever the value is to triger a event handler or a protection mechinism to protect system source.
2)event flags:
3)queue:it can transfer spefic message from one thread to another. we care most what the message is.
4)mutex:it is also
相关文章推荐
- My First English Thread
- english learning for my little girl
- A English version for my blog start.
- A document for my learning journey in Python - Day 1&2
- My First Python code for learnning English.
- My note for reading English reference
- wrote a single layer of deep html document procedures for my dear
- My First English Thread
- Creating document for PHP code
- 异步委托的应用(三) 去掉Form.CheckForIllegalCrossThreadCalls = false
- This is my first document
- Thread pooling for web connections
- 多线程之TextBox.CheckForIllegalCrossThreadCalls = false;//消除对textbox控件的线程检测
- The run destination My Mac 64-bit is not valid for Running the scheme '*****'.
- org.hibernate.HibernateException: No Session found for current thread
- System.Windows.Forms.Form.CheckForIllegalCrossThreadCalls = false;
- How to write a good design document for peer engineers (如何写一份给工程师看的技术文档)
- Hibernate4中使用getCurrentSession报Could not obtain transaction-synchronized Session for current thread
- Warning: No grammar constraints (DTD or XML schema) detected for the document
- Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest m