lkml.org 
[lkml]   [2001]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: threading question
    On Thu, Jun 14, 2001 at 07:28:32PM +0100, Alan Cox wrote:

    > There are really only two reasons for threaded programming.
    >
    > - Poor programmer skills/language expression of event handling

    The converse is that pthreads are:

    - Very easy to use from C at a reasonable runtime overhead

    It is very convenient for a userspace coder to be able to just start a
    function in a different thread. Now it might be so that a kernel is not
    there to provide ease of use for userspace coders but it is a factor.

    I see lots of people only using:
    pthread_create()/pthread_join()
    mutex_lock/unlock
    sem_post/sem_wait
    no signals

    My gut feeling is that you could implement this subset in a way that is both
    fast and right - although it would not be 'pthreads compliant'. Can anybody
    confirm this feeling?

    Regards,

    bert

    --
    http://www.PowerDNS.com Versatile DNS Services
    Trilab The Technology People
    'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:55    [W:0.033 / U:30.680 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site