SlideShare a Scribd company logo
17) The output of this C code is presented below! Please explain this output? (6p.) #include
#include < pthread.h > # define N5 void * Hello(void * p) { int Value =( int )p; printf("The value in
the thread is: /nn",Value); } int main() { pthread t myThreads [N]; for(int i=0;i<N;i++ ) pthread
create(&myThreads[i],NULL,Hello,(void*)i); } Output: The value in the thread is: 2 The value in the
thread is: 4

More Related Content

More from adamsapparels

1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf
adamsapparels
 
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
adamsapparels
 
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
adamsapparels
 
1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf
adamsapparels
 
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
adamsapparels
 
1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf
adamsapparels
 
1a Cmo termina la sntesis en la transcripcin a secu.pdf
1a  Cmo termina la sntesis en la transcripcin  a secu.pdf1a  Cmo termina la sntesis en la transcripcin  a secu.pdf
1a Cmo termina la sntesis en la transcripcin a secu.pdf
adamsapparels
 
1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf
adamsapparels
 
1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf
adamsapparels
 
1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf
adamsapparels
 
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
adamsapparels
 
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
adamsapparels
 
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
1Genel olarak firma neden dier firmalar satn almaya alr  .pdf1Genel olarak firma neden dier firmalar satn almaya alr  .pdf
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
adamsapparels
 
1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf
adamsapparels
 
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
adamsapparels
 
1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf
adamsapparels
 
1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf
adamsapparels
 
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
adamsapparels
 
1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf
adamsapparels
 
1El movimiento de las placas tectnicas est impulsado por.pdf
1El movimiento de las placas tectnicas est impulsado por.pdf1El movimiento de las placas tectnicas est impulsado por.pdf
1El movimiento de las placas tectnicas est impulsado por.pdf
adamsapparels
 

More from adamsapparels (20)

1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf
 
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
 
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
 
1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf
 
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
 
1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf
 
1a Cmo termina la sntesis en la transcripcin a secu.pdf
1a  Cmo termina la sntesis en la transcripcin  a secu.pdf1a  Cmo termina la sntesis en la transcripcin  a secu.pdf
1a Cmo termina la sntesis en la transcripcin a secu.pdf
 
1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf
 
1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf
 
1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf
 
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
 
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
 
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
1Genel olarak firma neden dier firmalar satn almaya alr  .pdf1Genel olarak firma neden dier firmalar satn almaya alr  .pdf
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
 
1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf
 
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
 
1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf
 
1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf
 
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
 
1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf
 
1El movimiento de las placas tectnicas est impulsado por.pdf
1El movimiento de las placas tectnicas est impulsado por.pdf1El movimiento de las placas tectnicas est impulsado por.pdf
1El movimiento de las placas tectnicas est impulsado por.pdf
 

Recently uploaded

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 

Recently uploaded (20)

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 

17 The output of this C code is presented below Please exp.pdf

  • 1. 17) The output of this C code is presented below! Please explain this output? (6p.) #include #include < pthread.h > # define N5 void * Hello(void * p) { int Value =( int )p; printf("The value in the thread is: /nn",Value); } int main() { pthread t myThreads [N]; for(int i=0;i<N;i++ ) pthread create(&myThreads[i],NULL,Hello,(void*)i); } Output: The value in the thread is: 2 The value in the thread is: 4