User Profile

Collapse

Profile Sidebar

Collapse
MrJay
MrJay
Last Activity: Sep 4 '06, 11:53 AM
Joined: Aug 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MrJay
    started a topic Copy on write problem
    in C

    Copy on write problem

    Hi,
    Can anyone give me a proper defination of copy-on-write with implementation of the same.
    I just know that "when one process is writing to some data, the other process which wants to read the same data should wait. Once the first process completes writing the other process can perform its operation".

    I'm I correct, If no, please let me know about that in detail. If possible explain using programming....
    See more | Go to post

  • MrJay
    replied to Help me to find out what is wrong with this code
    in C
    Please elaborate, I'm unable to get what you meant.
    See more | Go to post

    Leave a comment:


  • MrJay
    replied to Help me to find out what is wrong with this code
    in C
    I'm still waiting for any suggestions.

    Thanks
    See more | Go to post

    Leave a comment:


  • MrJay
    replied to Conversion of char to a string
    in C
    You can still try out this,
    Code:
    string line = "first.txt";
    istringstream is(line);
    istringstream is defined in <sstream> header file
    See more | Go to post

    Leave a comment:


  • MrJay
    replied to string manipulation
    in C
    Hi aspoline,
    I have sent you the working code. Try this out.

    It works fine as you want

    Code:
    char* str = new char[100];
    	char* temp = str;
    	char* read = new char[strlen(str)+1];
    
    	cout<<"Enter the string"<<endl;
    	cin>>temp;	
    	int count = 0, i=0;
    	char* p = &temp[0];
    	while(*temp && p++)
    	{
    		read[i++] =
    ...
    See more | Go to post

    Leave a comment:


  • MrJay
    replied to string manipulation
    in C
    Code:
    char* str = new char[100];
    	char* temp = str;
    	char* read = new char[strlen(str)+1];
    
    	cout<<"Enter the string"<<endl;
    	cin>>temp;	
    	int count = 0, i=0;
    	char* p = &temp[0];
    	while(*temp && p++)
    	{
    		read[i++] = *temp;
    		if(*temp == *p)
    		{
    			count++;						
    			temp++;			
    			continue;
    		}
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...