User Profile
Collapse
-
Mine is a single threaded process... so no matter how many objects are being created in real time , when every object is going for that single GLOBAL map. dont you u think the processor will allow this memory access sequentially only since this being a single threaded process....so when one object is doing a 'map.find' , is ther any possibility that this object will be stopped mid way and another Object will be allowed to modify the map by 'map.erase'...... -
Urgent Help Needed.. About Stl Map
Hi all,
ok here it goes..
I am going to implement a STL MAP.. say 'mapToken'..thi s is a GLOBAL map.
This mapToken has many nodes with its keys ranging from t1,t2,t3 ....t100 .
Now in my process many objects(of a class A) are being created( about 500).
These objects only checks the map to see whether a particular token is present as shown...
if(... -
okeysss.. i found out what my mistake was..
since i was trying out a dummy example i didnt define any data types( stuctures) for the rpc.. if no input or out put data satructures is defined then rpcgen will not produce XDR files.......Leave a comment:
-
hi all,
i created one RPC specification file ( .x) , compiled it using rpcgen protocol compiler. It created a .h file, client stub and server stub.. it DID'NT produce the XDR file.
$ rpcgen msg.x
$ ls
msg.x msg_svc.c msg.h msg_clnt.c
when i compile the same .x file on sunos it produces all the files.. I need this XDR file for the RPC client as the RPC server is using it..
...Leave a comment:
-
no XDR file created using rpcgen in linux...
hi all..
I want to implement an rpc client ,whose server is already there.. i am porting the client code from SunOS to linux.. but when i compile the '.x' file using rpcgen the XDR files are not getting created.. only CLNT, SVC and header files are getting created .. is their any way to create the XDR file on linux platform.. i need it becoz the server will be expectin the request in XDR format...
plz help ... -
thanku verymuch...
wat i plan to do is to include the time value in to the token value pair using the time() function..
now after every 48 hrs i can compare all the elements time value with the current time using difftime function..
how to implement this check after 48 hrs..
now, this map container belongs to a parent process ok..
so i fork a child and put it on a sleep cycle of 48 hrs..then send...Leave a comment:
-
thanku verymuch...
wat i plan to do is to include the time value in to the token value pair using the time() function..
now after every 48 hrs i can compare all the elements time value with the current time..
if difftime(Leave a comment:
-
How to implement a timer for 48 hrs and about timestamping..
hi,
i am storing a random token and userid,clientda ta etc on a STL map container with the unique token as the KEY and the structure containg userid,clientda ta etc as the VALUE.
Now i want to delete a token-Structure pair every 2 days. How will i know a particular token has expired?
Can i add another value on to the structure containing a time stamp of when it was created? Then after every 2 days some timer... -
hi,
i am storing a random token and userid,clientda ta etc on a STL map container with the unique token as the KEY and the structure containg userid,clientda ta etc as the VALUE.
Now i want to delete a token-Structure pair every 2 days. How will i know a particular token has expired?
Can i add another value on to the structure containing a time stamp of when it was created? Then after every 2 days some timer will expire...Leave a comment:
No activity results to display
Show More
Leave a comment: