ugc icon indicating copy to clipboard operation
ugc copied to clipboard

Introduction to Threading submission

Open dakshdeepHERE opened this issue 1 year ago • 9 comments

Description

This article have detailed information about what exactly threads are. What are the difference between threads and process. How to implement threads using C and Pthread lib.

Type of Change

  • Adding a new entry

Checklist

  • [x] All writings are my own.
  • [x] My entry follows the Codecademy Docs style guide.
  • [x] My changes generate no new warnings.
  • [x] I have performed a self-review of my own writing and code.
  • [x] I have checked my entry and corrected any misspellings.
  • [x] I have made corresponding changes to the documentation if needed.
  • [x] I have confirmed my changes are not being pushed from my forked main branch.
  • [x] I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • [x] Under "Development" on the right, I have linked any issues that are relevant to this PR (write "Closes # in the "Description" above).

Fixes #31

dakshdeepHERE avatar Jun 13 '23 12:06 dakshdeepHERE

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 13 '23 12:06 CLAassistant

I have one suggestion: Please review the first code example provided in the PR file. I have attached a screenshot of my CLI showing the output, and I have also written the output in the shell. You can choose whichever approach you prefer, and we can proceed with that, deleting the alternative entry.

dakshdeepHERE avatar Jun 13 '23 12:06 dakshdeepHERE

Hey @CBID2 I never knew we were allowed to review others code and suggest changes. This is a good practice imo to help maintainers. Maybe I would do some code reviews too if they are from my tech stack from next time.

dakshdeepHERE avatar Jun 14 '23 02:06 dakshdeepHERE

Oh of course we can @dakshdeepHERE! It's a common practice in open source! :) I wrote a FreecodeCamp article on how to review people's code. Check it out! 😊

CBID2 avatar Jun 14 '23 02:06 CBID2

@CBID2 yes I do that in other repo owned by my friend but I thought it's against the TOS here.

dakshdeepHERE avatar Jun 14 '23 04:06 dakshdeepHERE

@CBID2 yes I do that in other repo owned by my friend but I thought it's against the TOS here.

I don't think it is @dakshdeepHERE.

CBID2 avatar Jun 14 '23 04:06 CBID2

Hey @yangc95 I have few more optional codes that I wanted to add but I didn't as the article already is above 300 lines. If you want I can add them. But I think the code samples of creating threads for the functions and message between threads are enough for basic understanding of threads.

dakshdeepHERE avatar Jun 16 '23 11:06 dakshdeepHERE

@yangc95 Thank you for the amazing review I will get started with the changes. I'm totally blown away by the range of your knowledge in computer science after reading your comments in this entry. Devs like you always motivate me. Thanks for the correction.

dakshdeepHERE avatar Jul 14 '23 19:07 dakshdeepHERE

@dakshdeepHERE Hiya! Just pinging you on this as a light reminder 🙂 hope your studies are going along!

yangc95 avatar Aug 31 '23 03:08 yangc95