⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kernel-characterization.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 3 页
字号:
>This test measures the <TTCLASS="FUNCTION">cyg_thread_kill()</TT> callagain. In this case, the thread being killed is currently runnable,but lower priority than the main thread.                </P></DD><DT>Resume &#0091;high priority&#0093; thread</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_thread_resume()</TT> call.The thread being resumed is higher priority than the main thread, thusa thread switch will take place on each call. In fact there will betwo thread switches; one to the new higher priority thread and asecond back to the test thread. The test thread exits immediately.                </P></DD><DT>Thread switch</DT><DD><P>This test attempts to measure the cost of switching from one thread toanother. Two equal priority threads are started and they will eachyield to the other for a number of iterations. A time stamp isgathered in one thread before the<TTCLASS="FUNCTION">cyg_thread_yield()</TT> call and after the call in theother thread.                </P></DD></DL></DIV></DIV><DIVCLASS="REFSECT2"><ANAME="KERNEL-CHARACTERIZATION-MEASURE-SCHEDULER"></A><H3>Scheduler Primitives</H3><P></P><DIVCLASS="VARIABLELIST"><DL><DT>Scheduler lock</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_scheduler_lock()</TT> call.                </P></DD><DT>Scheduler unlock &#0091;0 threads&#0093;</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>call. There are no other threads in the system and the unlock happensimmediately after a lock so there will be no pending DSR&#8217;s torun.                </P></DD><DT>Scheduler unlock &#0091;1 suspended thread&#0093;</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>call. There is one other thread in the system which is currentlysuspended.                </P></DD><DT>Scheduler unlock &#0091;many suspended threads&#0093;</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>call. There are many other threads in the system which are currentlysuspended. The purpose of this test is to determine the cost of havingadditional threads in the system when the scheduler is activated byway of <TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>.                </P></DD><DT>Scheduler unlock &#0091;many low priority threads&#0093;</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>call. There are many other threads in the system which are runnablebut are lower priority than the main thread. The purpose of this testis to determine the cost of having additional threads in the systemwhen the scheduler is activated by way of<TTCLASS="FUNCTION">cyg_scheduler_unlock()</TT>.                </P></DD></DL></DIV></DIV><DIVCLASS="REFSECT2"><ANAME="KERNEL-CHARACTERIZATION-MEASURE-MUTEX"></A><H3>Mutex Primitives</H3><P></P><DIVCLASS="VARIABLELIST"><DL><DT>Init mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_init()</TT> call. Anumber of separate mutex variables are created. The purpose of thistest is to measure the cost of creating a new mutex and introducing itto the system.                </P></DD><DT>Lock &#0091;unlocked&#0093; mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_lock()</TT> call. Thepurpose of this test is to measure the cost of locking a mutex whichis currently unlocked. There are no other threads executing in thesystem while this test runs.                </P></DD><DT>Unlock &#0091;locked&#0093; mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_unlock()</TT> call.The purpose of this test is to measure the cost of unlocking a mutexwhich is currently locked. There are no other threads executing in thesystem while this test runs.                </P></DD><DT>Trylock &#0091;unlocked&#0093; mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_trylock()</TT> call.The purpose of this test is to measure the cost of locking a mutexwhich is currently unlocked. There are no other threads executing inthe system while this test runs.                </P></DD><DT>Trylock &#0091;locked&#0093; mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_trylock()</TT> call.The purpose of this test is to measure the cost of locking a mutexwhich is currently locked. There are no other threads executing in thesystem while this test runs.                </P></DD><DT>Destroy mutex</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mutex_destroy()</TT> call.The purpose of this test is to measure the cost of deleting a mutexfrom the system. There are no other threads executing in the systemwhile this test runs.                </P></DD><DT>Unlock/Lock mutex</DT><DD><P>This test attempts to measure the cost of unlocking a mutex for whichthere is another higher priority thread waiting. When the mutex isunlocked, the higher priority waiting thread will immediately take thelock. The time from when the unlock is issued until after the locksucceeds in the second thread is measured, thus giving the round-tripor circuit time for this type of synchronizer.                </P></DD></DL></DIV></DIV><DIVCLASS="REFSECT2"><ANAME="KERNEL-CHARACTERIZATION-MEASURE-MAILBOX"></A><H3>Mailbox Primitives</H3><P></P><DIVCLASS="VARIABLELIST"><DL><DT>Create mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_create()</TT> call. Anumber of separate mailboxes is created. The purpose of this test isto measure the cost of creating a new mailbox and introducing it tothe system.                </P></DD><DT>Peek &#0091;empty&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_peek()</TT> call. Anattempt is made to peek the value in each mailbox, which is currentlyempty. The purpose of this test is to measure the cost of checking amailbox for a value without blocking.                </P></DD><DT>Put &#0091;first&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_put()</TT> call. Oneitem is added to a currently empty mailbox. The purpose of this testis to measure the cost of adding an item to a mailbox. There are noother threads currently waiting for mailbox items to arrive.                </P></DD><DT>Peek &#0091;1 msg&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_peek()</TT> call. Anattempt is made to peek the value in each mailbox, which contains asingle item. The purpose of this test is to measure the cost ofchecking a mailbox which has data to deliver.                </P></DD><DT>Put &#0091;second&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_put()</TT> call. Asecond item is added to a mailbox. The purpose of this test is tomeasure the cost of adding an additional item to a mailbox. There areno other threads currently waiting for mailbox items to arrive.                </P></DD><DT>Peek &#0091;2 msgs&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_peek()</TT> call. Anattempt is made to peek the value in each mailbox, which contains twoitems. The purpose of this test is to measure the cost of checking amailbox which has data to deliver.                </P></DD><DT>Get &#0091;first&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_get()</TT> call. Thefirst item is removed from a mailbox that currently contains twoitems. The purpose of this test is to measure the cost of obtaining anitem from a mailbox without blocking.              </P></DD><DT>Get &#0091;second&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_get()</TT> call. Thelast item is removed from a mailbox that currently contains one item.The purpose of this test is to measure the cost of obtaining an itemfrom a mailbox without blocking.                </P></DD><DT>Tryput &#0091;first&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_tryput()</TT> call. Asingle item is added to a currently empty mailbox. The purpose of thistest is to measure the cost of adding an item to a mailbox.                </P></DD><DT>Peek item &#0091;non-empty&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_peek_item()</TT> call.A single item is fetched from a mailbox that contains a single item.The purpose of this test is to measure the cost of obtaining an itemwithout disturbing the mailbox.                </P></DD><DT>Tryget &#0091;non-empty&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_tryget()</TT> call. Asingle item is removed from a mailbox that contains exactly one item.The purpose of this test is to measure the cost of obtaining one itemfrom a non-empty mailbox.                </P></DD><DT>Peek item &#0091;empty&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_peek_item()</TT> call.An attempt is made to fetch an item from a mailbox that is empty. Thepurpose of this test is to measure the cost of trying to obtain anitem when the mailbox is empty.                </P></DD><DT>Tryget &#0091;empty&#0093; mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_tryget()</TT> call. Anattempt is made to fetch an item from a mailbox that is empty. Thepurpose of this test is to measure the cost of trying to obtain anitem when the mailbox is empty.                </P></DD><DT>Waiting to get mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_waiting_to_get()</TT>call. The purpose of this test is to measure the cost of determininghow many threads are waiting to obtain a message from this mailbox.                </P></DD><DT>Waiting to put mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_waiting_to_put()</TT>call. The purpose of this test is to measure the cost of determininghow many threads are waiting to put a message into this mailbox.                </P></DD><DT>Delete mbox</DT><DD><P>This test measures the <TTCLASS="FUNCTION">cyg_mbox_delete()</TT> call.The purpose of this test is to measure the cost of destroying amailbox and removing it from the system.                </P></DD><DT>Put/Get mbox</DT><DD><P

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -