updating a file at the same time

D

dost

hi..friends...
can any budy ..help..me out..plz answer these question..
Q1 how can i open a file so that other programs can update it at the
same time.

Q2 when should the register modifier be used ? does it really work.

Q3 eqivalent expression to x%8

plzz ans

with warm regards
dost
 
T

Tomás

dost posted:
hi..friends...
can any budy ..help..me out..plz answer these question..


Try alt.do.my.homework

Q1 how can i open a file so that other programs can update it at the
same time.

Platform-specific as far as I'm aware. If you're using MS Windows, try
using a flag something like NOT_EXCLUSIVE_OPEN.

Q2 when should the register modifier be used ? does it really work.

Use the "register" modifier if you would like your value to be stored in
a CPU register rather than in actual memory.

I've never used it so I can't give any help.
Q3 eqivalent expression to x%8

( x - ( x / 8 ) * 8 )


-Tomás
 
B

benben

dost said:
Q1 how can i open a file so that other programs can update it at the
same time.

You surely don't want to do that do you? Ever heard of race condition?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top