[linux-programlama] PTHREAD Hakkında

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Veli ADIGÃœZEL (velia@linux-sevenler.org)
Date: Sat 17 Apr 2004 - 14:49:47 EEST


Merhabalar,,,

iki pthread tan birinden diğerine değer almam lazım ama şu anda kafam durdu bi el atarsa ustalar fena olmaz ana kod aşağıda olay barkod okuyucudan gelen bilgiyi lcd_update_func aktarmak...

Herkese iyi çalışmalar

int
main (int argc, char *argv[])
{
        pthread_t lcd_update;
        pthread_t barkod_update;
        pthread_attr_t pthread_custom_attr;
        lcd_init ();
        pthread_attr_init (&pthread_custom_attr);

        pthread_create (&lcd_update, &pthread_custom_attr, lcd_update_func,
                        NULL);
        pthread_create (&barkod_update, &pthread_custom_attr,
                        barkod_update_func, NULL);

        while (1)
        {
                pthread_join (lcd_update, NULL);
                pthread_join (barkod_update, NULL);
        }
        return 0;
}


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.