Type: Posts; User: Rajesh1978
Search took 0.02 seconds.
March 25th, 2015, 09:14 PM
March 23rd, 2015, 12:36 PM
across drives mean?
in linux i saw a code where i see copy and unlink to /mnt/mypath instead move
thats why the doubt
March 23rd, 2015, 12:18 PM
i have one doubt is it good to move the file from one path to other path.
Or it is good to copy the file and unlink.
February 18th, 2015, 08:58 PM
February 16th, 2015, 11:47 AM
Very good knowledge is being exchanged.
Thanks to all gurus
Now my real question is repeated
I meant the above quoted thing in the beginning.
question is why two exceptions can not be...
February 12th, 2015, 11:26 AM
It is advisable not to throw the exception from destructor. Because if exception happens stack unwinding happens. suppose the destructor again throws the exception then on part of first exception...
November 6th, 2014, 11:44 PM
I even tried with set. Not much difference i see.
In all the cases i see stat is faster.
May be it is chacheing and using the the entries from the cache.
also the operation is happening in a...
November 6th, 2014, 08:39 PM
unordered set is there in c++ 11. As I am using older gcc compiler I do not have that.
One more thing is there any system call in linux which notifies the changes in a directory ?
November 6th, 2014, 11:15 AM
I tested with below scenario.
1. I put 15K files on a directory
2. used stat command to check the existance of some 5 files
Time taken 2 miliseconds
3. Did same thing using opendir. Loaded all...
November 5th, 2014, 12:46 PM
i am accessing the location every 1 sec. Some time 3-4 files of size 800k is getting added per 1sec.
I am getting delay once the number of files are more in the path
November 5th, 2014, 12:31 PM
I want to check some 5 files one at a time.
New files get added 2/min in that path.
November 5th, 2014, 11:57 AM
I am using stat command to check the existence of a file in a directory.
The directory is having some 10K files. I feel the stat() call is expensive as i do not need the structure to be...
August 25th, 2014, 01:16 PM
Yes without synchronization there will be lot of problem.
August 25th, 2014, 02:20 AM
Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
November 29th, 2013, 02:09 AM
November 26th, 2013, 11:47 AM
I have the following piece of code.
using namespace std;
June 11th, 2013, 12:46 PM
So is it wrong to say Reference is constant pointer?
June 10th, 2013, 01:01 PM
what is the advantage of using reference over constant pointer?
Can they be used interchangeably?
April 22nd, 2013, 05:53 AM
Now it seems to be correctly resolved thread
April 22nd, 2013, 05:26 AM
I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
Think that I have all the POD attributes then what is the use?
March 5th, 2013, 12:34 PM
If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
December 13th, 2012, 12:48 AM
December 12th, 2012, 11:40 PM
I got it now.
while testing this i got one more confusion.
if i make the comp as below
December 12th, 2012, 12:09 PM
I have the piece of code
using namespace std;
November 26th, 2012, 04:47 AM
This i did not get from any book or tutorial;
I thought logically it should work.
In the first case when Demo d=100 ( constructor with one argument is called)
It is same as Demo d(100) ->the 1...
Click Here to Expand Forum to Full Width