cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Library

Create, Join and Delete Threads with WICED APIs

SeyhanA_31
Employee

Create, Join and Delete Threads with WICED APIs

The attached application creates threads, waits for each thread to end and then deletes the threads.

Each thread prints thread specific information on the serial terminal.

To synchronize the printing on the serial terminal, semaphore is created and passed to the each thread, along with some other data, as a thread parameter.

Block of threads are created and waited on to be joined before they are deleted.

Setting up and running the application:

Unzip the attached zip file and copy the "create_delete_thread" directory to .../apps/snip/ directory, /apps/snip/create_delete_thread.

Add "snip.create_delete_thread-<YourPlatform> download run" to the Make Target

     For BCM943362WCD4 platform: "snip.create_delete_thread-BCM943362WCD4 download run"

Connect your target module to your development host computer.

Open WicedSerial or serial terminal to observe serial data sent from the target device.

Below is the output captured via WicedSerial:

pastedImage_1.png

Attachments
Version history
Revision #:
1 of 1
Last update:
‎Jan 21, 2015 10:58 AM
Updated by:
 
Contributors