Content deleted Content added
m clean up spacing around commas and other punctuation fixes, replaced: ,V → , V |
→Threads: format example code |
||
Line 60:
int init_module(void)
{
pthread_attr_t attr;
struct sched_param param;
pthread_attr_init(&attr);
param.sched_priority = 1;
pthread_attr_setschedparam(&attr, ¶m);
pthread_create(&t1, &attr, &thread_code, "this is thread 1");
rtl_printf("Thread 1 started\n");
/* ... */
}
</syntaxhighlight>
|