Sponsored Content
Full Discussion: Atomic Operations
Operating Systems Linux Atomic Operations Post 302722877 by aditya08 on Monday 29th of October 2012 12:50:44 AM
Old 10-29-2012
Atomic Operations

Hello

I am a newbie in linux.
Please tell me what are atomic operations in Linux.
IS i++ a atomic oparation??
Please help..
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is `mv dir dir2` atomic ?

if I rename a dir mv dir dir2 Is this operation atomic? Suppose there 100 files in dir, does linux rename them one by one or at once? In other words, is there a time at which both dir and dir2 exist, with dir has, say 30 files and dir2 has the rest 70 files? (4 Replies)
Discussion started by: meili100
4 Replies

2. Programming

Atomic lock file creation

Hello, I need to implement a locking system in C. My problem is how to make the check if the lock file exist and locking it atomic operation. I want to make something like this: FILE* lock_fname; lock_fname = fopen ( "file.lock", "r"); /*check if file exsists*/ if (lock_fname) { fclose... (7 Replies)
Discussion started by: tsurko
7 Replies

3. Programming

Atomic Read and Write with stdio

hi guys. can we use fread and fwrite with pipes to write data more than PIPE_BUF atomically since they lock FILE object until I/O operation finish? (1 Reply)
Discussion started by: majid.merkava
1 Replies

4. UNIX for Dummies Questions & Answers

system calls and atomic operation

Are system calls atomic operations? Is a system call can be interrupted? (2 Replies)
Discussion started by: vistastar
2 Replies
std::atomic< _Tp >(3cxx)												  std::atomic< _Tp >(3cxx)

NAME
std::atomic< _Tp > - SYNOPSIS
Public Member Functions atomic (const atomic &) constexpr atomic (_Tp __i) bool compare_exchange_strong (_Tp &, _Tp, memory_order, memory_order) bool compare_exchange_strong (_Tp &, _Tp, memory_order, memory_order) volatile bool compare_exchange_strong (_Tp &, _Tp, memory_order=memory_order_seq_cst) bool compare_exchange_strong (_Tp &, _Tp, memory_order=memory_order_seq_cst) volatile bool compare_exchange_weak (_Tp &, _Tp, memory_order, memory_order) bool compare_exchange_weak (_Tp &, _Tp, memory_order, memory_order) volatile bool compare_exchange_weak (_Tp &, _Tp, memory_order=memory_order_seq_cst) bool compare_exchange_weak (_Tp &, _Tp, memory_order=memory_order_seq_cst) volatile _Tp exchange (_Tp __i, memory_order=memory_order_seq_cst) _Tp exchange (_Tp __i, memory_order=memory_order_seq_cst) volatile bool is_lock_free () const bool is_lock_free () const volatile _Tp load (memory_order=memory_order_seq_cst) const _Tp load (memory_order=memory_order_seq_cst) const volatile operator _Tp () const operator _Tp () const volatile atomic & operator= (const atomic &) atomic & operator= (const atomic &) volatile _Tp operator= (_Tp __i) _Tp operator= (_Tp __i) volatile void store (_Tp, memory_order=memory_order_seq_cst) void store (_Tp, memory_order=memory_order_seq_cst) volatile Detailed Description template<typename _Tp>struct std::atomic< _Tp > atomic 29.4.3, Generic atomic type, primary class template. Definition at line 155 of file atomic. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::atomic< _Tp >(3cxx)
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy