LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Why and how to use `pthread_join()`? - PThreads

Posted 05-23-2012 at 01:00 AM by Anisha Kaul
Updated 05-23-2012 at 05:16 AM by Anisha Kaul

Join:
Join is a functionality of Pthread library which allows the originating thread to wait for the completion of all its spawned thread's tasks.

Without join the originating thread would exit as soon as it completes its chores, completely ignoring the states of its spawned threads. Due to this, even if any of the spawned threads is in middle of its chore, it'll simply get aborted.

Problem:
Code:
#include <pthread.h>
#include <iostream>
...
Senior Member
Posted in PThreads
Views 166 Comments 0 Anisha Kaul is offline
Old

Yellow Split Pigeon Peas lentil with a twist AKA Sambhar (in Hindi)

Posted 05-09-2012 at 11:15 PM by Anisha Kaul
Updated 05-17-2012 at 06:08 AM by Anisha Kaul

Ingredients:
  • 1/2 cup Yellow Split Pigeon Peas lentil (AKA Toor dal in Hindi)
  • 3/4 table spoon small yellow Mustard seeds (AKA Sarson in Hindi).
  • 1 and a half medium Green chillies (AKA Hari mirch in Hindi).
  • 1 table spoon thick Tamarind syrup. (AKA Imli ka pani in Hindi). (No, this ingredient can NOT be skipped.)
  • 1 tablespoon Sambhar masala. (No, this ingredient can NOT be skipped.)
  • 1/4 tea spoon Turmeric powder (AKA Haldi in Hindi).
  • 1 medium Onion.
  • 1 small Tomato.
  • 1/2 table spoon
...
Senior Member
Posted in Recipes
Views 200 Comments 0 Anisha Kaul is offline
Old
Rating: 2 votes, 3.00 average.

Bottle Gourd AKA Lauki (in Hindi)

Posted 03-30-2012 at 12:17 PM by Anisha Kaul
Updated 05-09-2012 at 11:31 PM by Anisha Kaul

Ingredients:
  • 1 table spoon small yellow Mustard seeds (Aka Sarson in Hindi).
  • 1/2 table spoon Cumin seeds (Aka Zeera in Hindi).
  • 8 Black Pepper corns (Aka Kali Mirch in Hindi).
  • 9 cloves Garlic (Aka Lesun in Hindi).
  • 2 medium Green chillies (Aka Hari mirch in Hindi).
  • 1 tablespoon Coriander powder (Aka Dhania in Hindi).
  • 1/4 tea spoon Turmeric powder (Aka Haldi in Hindi).
  • 1/2 table spoon Salt.
  • 1 medium Onion.
  • 1 Bottle Gourd of length 25cm, and width 18cm.
  • 3 tablespoons Oil for frying.
...
Senior Member
Posted in Recipes
Views 671 Comments 3 Anisha Kaul is offline
Old
Rating: 2 votes, 5.00 average.

Fooling myself

Posted 03-23-2012 at 03:02 AM by Anisha Kaul
Updated 03-23-2012 at 03:19 AM by Anisha Kaul

Another problem that I have is that I keep on talking to
myself by visualizing the things that happened in my
past.
Example - Last week I somehow remembered a big incident
that happened in my life 8 years ago when I was in college.
Those college days were very painful for me. Now what I
do is to visualize those moments with those same people
around but with the situation in my favour. I try to
convience those people by telling them what...
Senior Member
Views 1121 Comments 4 Anisha Kaul is offline
Old

this pointer - C++

Posted 03-13-2012 at 11:10 AM by Anisha Kaul
Updated 03-13-2012 at 10:25 PM by Anisha Kaul

Quote:
The this pointer is a hidden pointer inside every class's non-static function which points to the class's particular object through which the concerned function is called.
Example:
Code:
class A
{
    private:
        int rollNumber;

    public:
	A (int rollNum)
	{
	    rollNumber = rollNum;
	}

	void setRollNumber (int rollNum)
	{
	    rollNumber = rollNum;
	}
};
...
Senior Member
Posted in C++, Pointers
Views 246 Comments 0 Anisha Kaul is offline

  



All times are GMT -5. The time now is 12:04 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration