Skip to contentSkip to conversation

info needed on atomic operations

DISCUSSION Srinivas Chinta 2 participants 2 messages Jan 4, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

I need some information on atomic operations. Please provide me some information on how do I do the following operations atomically(for iX86):
(1) set a charecter ( dst = src),
(2) compare and then set a charecter ( if (dst==X) dst = src;)

It would be great If you provide some references to any good documents.

Thanks,
Srini

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw

Srinivas,

Quoted 8 lines · Srinivas Chinta

Hi all,

I need some information on atomic operations. Please provide me some information on how do I do the following operations atomically(for iX86):
(1) set a charecter ( dst = src),
(2) compare and then set a charecter ( if (dst==X) dst = src;)

What exactly are trying to do? Are you working in user- or in kernelspace? What kernel? What programming language?

Cheers

Jake
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs