gnu.gcc.help
[Top] [All Lists]

Re: How could pthread_mutex_lock/unlock affect compiler optimization and

Subject: Re: How could pthread_mutex_lock/unlock affect compiler optimization and / or caching??
From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxx>
Date: Thu, 17 Jul 2008 07:15:57 -0700
Newsgroups: gnu.gcc.help

mynickmynick <mynickmynick@xxxxxxxxx> writes:

> How could pthread_mutex_lock / unlock affect compiler optimization
> and / or caching??

Homework?

A: In many ways. Think about it: can a variable be kept in a register
across a call to pthread_mutex_lock() ?

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>