Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 61) sorted by relevance

123

/samples/kernel/condition_variables/simple/
A DREADME.rst14 thread. Main thread uses a condition variable to wait for a condition to
15 become true. Main thread and the worker thread alternate between their
16 execution based on when the worker thread signals the main thread that is
40 [thread 0] working (0/5)
41 [thread 1] working (0/5)
42 [thread 2] working (0/5)
43 [thread 3] working (0/5)
44 [thread 4] working (0/5)
45 [thread 5] working (0/5)
46 [thread 6] working (0/5)
[all …]
/samples/kernel/condition_variables/condvar/
A DREADME.rst13 thread. A thread uses a condition variable to wait for a condition to
39 Starting watch_count: thread 1
41 inc_count: thread 2, count = 1, unlocking mutex
42 inc_count: thread 3, count = 2, unlocking mutex
43 inc_count: thread 2, count = 3, unlocking mutex
44 inc_count: thread 3, count = 4, unlocking mutex
45 inc_count: thread 2, count = 5, unlocking mutex
46 inc_count: thread 3, count = 6, unlocking mutex
47 inc_count: thread 2, count = 7, unlocking mutex
56 watch_count: thread 1 count now = 137.
[all …]
/samples/userspace/syscall_perf/
A DREADME.rst10 user thread has to go through a system call compared to a supervisor thread that
17 This application creates a supervisor and a user thread.
19 current thread. The user thread has to go through a system call.
30 User thread: 18012 cycles 748 instructions
31 Supervisor thread: 7 cycles 4 instructions
32 User thread: 20136 cycles 748 instructions
33 Supervisor thread: 7 cycles 4 instructions
34 User thread: 18014 cycles 748 instructions
35 Supervisor thread: 7 cycles 4 instructions
A Dsample.yaml10 - "User thread"
/samples/subsys/task_wdt/
A DREADME.rst5 Monitor a thread using a task watchdog.
41 Main thread still alive...
42 Control thread started.
43 Main thread still alive...
44 Main thread still alive...
45 Main thread still alive...
46 Control thread getting stuck...
47 Main thread still alive...
48 Task watchdog channel 1 callback, thread: control
A Dsample.yaml12 - "Control thread started."
13 - "Main thread still alive..."
14 - "Control thread getting stuck..."
15 - "Task watchdog channel 1 callback, thread: control"
/samples/userspace/syscall_perf/src/
A Dtest_supervisor.c18 k_tid_t thread; in supervisor_thread_function() local
27 thread = k_current_get(); in supervisor_thread_function()
47 thread, cycle_count, inst_count); in supervisor_thread_function()
A Dtest_user.c18 k_tid_t thread; in user_thread_function() local
27 thread = k_current_get(); in user_thread_function()
47 thread, cycle_count, inst_count); in user_thread_function()
/samples/boards/arc_secure_services/
A Dsample.yaml20 - "I am the main thread in secure world: 0"
22 - "I am the main thread in secure world: 1"
23 - "I am the main thread in secure world: 2"
24 - "I am the main thread in secure world: 3"
/samples/subsys/llext/edk/app/src/
A Dmain.c65 k_tid_t thread; member
110 if (extension_threads[i].thread == k_current_get()) { in k_sys_fatal_error_handler()
118 struct k_thread *thread, in run_extension_on_thread() argument
133 k_thread_create(thread, stack, USER_STACKSIZE, in run_extension_on_thread()
136 k_mem_domain_add_thread(domain, thread); in run_extension_on_thread()
139 k_thread_heap_assign(thread, heap); in run_extension_on_thread()
141 extension_threads[max_extension_thread_idx].thread = thread; in run_extension_on_thread()
144 k_thread_start(thread); in run_extension_on_thread()
A Dpubsub.c34 k_tid_t thread; member
47 static int remove_subscriber(k_tid_t thread, struct subs *sus) in remove_subscriber() argument
52 if (sus->subscribers[i].thread == thread) { in remove_subscriber()
53 sus->subscribers[i].thread = NULL; in remove_subscriber()
72 static int add_subscriber(k_tid_t thread, struct subs *sus, in add_subscriber() argument
79 sus->subscribers[sus->subscribers_count].thread = thread; in add_subscriber()
83 printk("[app]Thread [%p] registered event [%p]\n", thread, evt); in add_subscriber()
/samples/net/cellular_modem/server/
A Dte_udp_echo.py11 self.thread = threading.Thread(target=self._target_)
14 self.thread.start()
18 self.thread.join(1)
A Dte_udp_receive.py45 self.thread = threading.Thread(target=self._target_)
49 self.thread.start()
53 self.thread.join(1)
/samples/modules/tflite-micro/tflm_ethosu/src/
A Dmain.cpp216 k_thread thread; in main() member
236 auto &thread = threads[nthreads]; in main() local
239 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceSenderTask, in main()
241 if (thread.id == 0) { in main()
259 auto &thread = threads[nthreads]; in main() local
265 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceProcessTask, in main()
267 if (thread.id == 0) { in main()
/samples/arch/smp/pi/
A DREADME.rst24 This project outputs Pi values calculated by each thread and in the end total time
41 Pi value calculated by thread #0: 3141592653589793238462643383279502884197...
42 Pi value calculated by thread #1: 3141592653589793238462643383279502884197...
44 Pi value calculated by thread #14: 314159265358979323846264338327950288419...
45 Pi value calculated by thread #15: 314159265358979323846264338327950288419...
/samples/drivers/stepper/generic/
A DKconfig19 int "Monitor thread timeout (ms)"
23 int "Monitor thread stack size"
/samples/userspace/prod_consumer/
A DREADME.rst44 - Application B processing thread waits on new items in the queue. It
62 I:monitor thread got data payload #0
64 I:monitor thread got data payload #1
66 I:monitor thread got data payload #2
68 I:monitor thread got data payload #3
70 I:monitor thread got data payload #4
74 I:monitor thread got data payload #5
78 I:monitor thread got data payload #6
82 I:monitor thread got data payload #7
86 I:monitor thread got data payload #8
[all …]
/samples/userspace/shared_mem/
A DREADME.rst49 The PT thread sends a message followed by the encrypted version of the
50 message after sleeping. To send the message the PT thread checks a
52 the encrypt thread. After writing the buffer, the flag is set. The
53 encrypt thread copies the memory from the common buffer into the
54 encrypted thread's private memory when the flag is set and then clears
55 the flag. Once the encrypted thread receives the text string, it
58 thread. The third thread prints the CT to the console with a banner
/samples/modules/tflite-micro/hello_world/
A DCMakeLists.txt7 # C++ ABI for thread-safe initialization of local statics and the constructors don't
8 # appear to require thread safety, we turn it off in the C++ compiler.
/samples/modules/tflite-micro/magic_wand/
A DCMakeLists.txt7 # C++ ABI for thread-safe initialization of local statics and the constructors don't
8 # appear to require thread safety, we turn it off in the C++ compiler.
/samples/basic/minimal/
A DKconfig6 bool "Do print from the main thread which can be checked"
/samples/basic/threads/
A DREADME.rst1 .. zephyr:code-sample:: multi-thread-blinky
2 :name: Basic thread manipulation
11 :c:func:`K_THREAD_DEFINE`. It spawns three threads. Each thread is then defined
21 :ref:`FIFO <fifos_v2>` identifying the thread/LED and how many times it has
24 The third thread uses :c:func:`printk` to print the information added to the
/samples/kernel/msg_queue/
A DREADME.rst4 Implements a basic message queue producer/consumer thread pair.
10 A producer thread sends both normal and urgent messages to be retrieved
11 by a consumer thread.
35 In this sample, one producer thread sends 1 urgent message for each 2 normal
/samples/kernel/metairq_dispatch/
A DREADME.rst9 This sample demonstrates the use of a thread running at a MetaIRQ
14 a different priority. The dispatch is handled by a MetaIRQ thread fed
18 must happen in the worker thread. This implements a "bursty load"
25 the MetaIRQ thread for dispatch.
27 * The time between ISR and receipt by the worker thread.
29 * The real time spent processing the message in the worker thread, for
31 to measure preemption overhead where the thread is not scheduled.
40 by the MetaIRQ thread.
47 thread always runs immediately after the ISR. It shows reliable,
61 Note that because the test is fundamentally measuring thread
[all …]
/samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/
A DREADME.rst11 The main thread creates a preemptive thread which writes message to message queue
12 and on timer expiry, message is read by main thread.

Completed in 56 milliseconds

123