By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,713 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,713 IT Pros & Developers. It's quick & easy.

flock

P: n/a
jf
Hi,

If I open a file with mode 'a' (ie fopen('file','a')), must I use flock to prevent concurrency access ?
I'm on a single server with no network file system.

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
jf <no@no.spam> wrote in message news:<20040929194520.109f9293@localhost>...
Hi,

If I open a file with mode 'a' (ie fopen('file','a')), must I use flock to prevent concurrency access ?
I'm on a single server with no network file system.

Thanks.


if it's just you, it isnt necessary...unless of course your are
performing multiple tasks with the same file at the same time

if it's a file with shared access, then you should always lock it
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.