EMBEDDED SYSTEMS AND METHODS FOR THREADS AND BUFFER MANAGEMENT THEREOF
First Claim
1. An embedded system, comprising:
- a processing unit, simultaneously executing at least one first thread having a flag for performing a data acquisition operation and one second thread for performing a data process and output operation for acquired data in the data acquisition operation, wherein the flag is used for indicating that a state of the first thread is in one of an execution state and a sleep state; and
a memory coupled to the processing unit, providing a shared buffer for the at least one first thread and the second thread,wherein, the processing unit checks the flag before executing the second thread, wherein the second thread is executed when the flag indicates the sleep state while execution of the second thread is suspended when the flag indicates the execution state.
1 Assignment
0 Petitions
Accused Products
Abstract
Embedded systems are provided, which includes a processing unit and a memory. The processing unit simultaneously executes first thread having a flag for performing a data acquisition operation and second thread for performing a data process and output operation for the acquired data in the data acquisition operation. The flag is used for indicating whether a state of the first thread is in an execution state or a sleep state. The memory which is coupled to the processing unit provides a shared buffer for the first and second threads. Before executing the second thread, the flag is checked to determine whether to execute the second thread, wherein the second thread is executed when the flag indicates the sleep state while execution of the second thread is suspended when the flag indicates the execution state.
13 Citations
15 Claims
-
1. An embedded system, comprising:
-
a processing unit, simultaneously executing at least one first thread having a flag for performing a data acquisition operation and one second thread for performing a data process and output operation for acquired data in the data acquisition operation, wherein the flag is used for indicating that a state of the first thread is in one of an execution state and a sleep state; and a memory coupled to the processing unit, providing a shared buffer for the at least one first thread and the second thread, wherein, the processing unit checks the flag before executing the second thread, wherein the second thread is executed when the flag indicates the sleep state while execution of the second thread is suspended when the flag indicates the execution state. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for thread and buffer management for use in an embedded system, wherein the embedded system simultaneously executes at least one first thread for performing a data acquisition operation and one second thread for performing a data process and output operation for the acquired data in the data acquisition operation, wherein a shared buffer is provided to the first and second threads, the method comprising:
-
providing the first thread a flag for indicating that a state of the first thread is in one of an execution state and a sleep state; and checking the flag before executing the second thread, wherein the second thread is executed when the flag indicates the sleep state while execution of the second thread is suspended when the flag indicates the execution state. - View Dependent Claims (11, 12, 13, 14, 15)
-
Specification