Related Topics

what is Protocols in Hindi

What is a Program in Hindi

What is a Secure Connection in Hindi

Introduction to WWW in Hindi

What are Development Tools in Hindi

What is a Web Browser in Hindi

What is a Server in Hindi

What is a UNIX Web Server in Hindi

What is Logging Users in Hindi

What is Dynamic IP Web Design in Hindi

Web Site Design Principles in Hindi

Site Planning in Hindi

Website Navigation in Hindi

what is Web Systems Architecture in Hindi

Architecture of Web-Based Systems in Hindi

Client-Server Architecture in Hindi

What is Caching in Hindi

: Proxies in Hindi

What is an Index in Hindi

What is a Load Balancer in Hindi

Web Application Architecture in Hindi

JavaScript in Hindi

Client-Side Scripting in Hindi

Introduction to Simple JavaScript in Hindi

: JavaScript Variables in Hindi

What is a Function in JavaScript in Hindi

What are Conditions in JavaScript in Hindi

What are Loops in JavaScript in Hindi

What is Repetition (Looping) in JavaScript? in Hindi

What is an Object in JavaScript in Hindi

JavaScript Own Objects in Hindi

DOM in Hindi

What is a Web Browser Environment in Hindi

Forms in JavaScript in Hindi

DHTML in Hindi

What are Events in DHTML in Hindi

Browser Control in JavaScript in Hindi

AJAX in Hindi

AJAX-based Web Application in Hindi

Alternatives to AJAX in Hindi

XML in Hindi

Uses of XML in Hindi

Simple XML in Hindi

XML Key Components in Hindi

What is DTD (Document Type Definition) in Hindi

What is XML Schema (XSD) in Hindi

XML with Application in Hindi

XSL in Hindi

XSLT in Hindi

Web Service in hindi

PHP in Hindi

Server-Side Scripting in Hindi

PHP Arrays in Hindi

PHP Functions in Hindi

PHP Forms in Hindi

Advanced PHP Databases in Hindi

Introduction to Basic Commands in PHP in Hindi

Server Connection in PHP in Hindi

Database Creation in PHP in Hindi

Understanding Database Selection in PHP in Hindi

PHPMyAdmin in Hindi

Database Bugs in Hindi

PHP Database Query in Hindi

Related Subjects

What is a Queue in Hindi

RGPV University / DIPLOMA_CSE / Web Technology

What is a Queue in Hindi

Definition of Queue

Queue एक linear data structure है जिसमें elements को उस order में रखा जाता है जिस order में वे आए हों। इसे FIFO (First In First Out) structure कहा जाता है, जिसका मतलब है कि जो element सबसे पहले आएगा, वही सबसे पहले बाहर जाएगा।

Real-life Example

  • Bank में लोग queue में खड़े रहते हैं। जो सबसे पहले आया, उसे सबसे पहले सेवा मिलती है।
  • Ticket counter पर लोग line में खड़े होते हैं।

Types of Queues in Hindi

Main Types of Queue

  • Simple Queue – इसमें elements केवल पीछे से add (enqueue) होते हैं और आगे से remove (dequeue)।
  • Circular Queue – यह queue की एक improved form है जहाँ last position पहले position से connect होती है। इससे space की problem solve होती है।
  • Priority Queue – इसमें हर element को एक priority दी जाती है और dequeue करते समय highest priority वाला element पहले निकाला जाता है।
  • Double Ended Queue (Deque) – इसमें elements को दोनों ends से insert या delete किया जा सकता है।

Operations on Queues in Hindi

Basic Operations

  • Enqueue: Queue में new element को पीछे जोड़ना।
  • Dequeue: Queue के आगे से element को हटाना।
  • Peek/Front: सबसे आगे वाले element को देखना बिना उसे हटाए।
  • IsEmpty: Check करना कि queue खाली है या नहीं।
  • IsFull: Check करना कि queue पूरी भर चुकी है या नहीं।

Queue in Array using C

#define SIZE 100
int queue[SIZE];
int front = -1, rear = -1;

void enqueue(int value) {
  if(rear == SIZE - 1)
    printf("Queue is Full");
  else {
    if(front == -1) front = 0;
    rear++;
    queue[rear] = value;
  }
}

int dequeue() {
  if(front == -1 || front > rear) {
    printf("Queue is Empty");
    return -1;
  } else {
    return queue[front++];
  }
}

Applications of Queues in Hindi

Real-world and Technical Applications

  • Operating System में process scheduling के लिए queues का use होता है।
  • Printer में print jobs queue में जाती हैं।
  • Customer Service systems में customer requests को manage करने के लिए।
  • Breadth First Search (BFS) जैसे algorithms में।
  • Data packets को network में transmit करने के लिए।

Advantages of Using Queues in Hindi

Main Benefits

  • FIFO principle से fair processing होती है।
  • Process scheduling और resource management में उपयोगी।
  • Memory का efficient use circular queues में संभव है।
  • Queues asynchronous data transfer में सहायक होती हैं (जैसे IO Buffers)।

Disadvantages of Using Queues in Hindi

Limitations

  • Simple queue में space की समस्या होती है (जब front बढ़ता जाता है)।
  • Random access संभव नहीं होता, इसलिए searching inefficient होती है।
  • Fixed size होने पर overflow की problem हो सकती है।

FAQs

Queue एक ऐसा data structure है जो FIFO (First In First Out) principle पर काम करता है। इसका मतलब है कि जो element सबसे पहले add किया गया है वही सबसे पहले remove किया जाएगा।
Queue के मुख्य प्रकार हैं: Simple Queue, Circular Queue, Priority Queue, और Double Ended Queue (Deque)। हर प्रकार का queue अपने उपयोग के अनुसार अलग होता है।
Queue के मुख्य operations हैं: Enqueue (element जोड़ना), Dequeue (element हटाना), Peek/Front (पहले element को देखना), IsEmpty और IsFull।
Queue का उपयोग कई जगहों पर होता है जैसे Bank, Ticket counters, Operating System scheduling, Printer jobs, और Networking में data packets के लिए।
Queue का use fair process handling, asynchronous data transfer, और memory optimization के लिए किया जाता है। ये resource management में भी मदद करता है।
Simple Queue में space wastage, fixed size limitation और random access की कमी जैसी समस्याएं होती हैं। ये searching के लिए efficient नहीं होता।

Please Give Us Feedback