Discover how queues work in other coding languages so that you are prepared to integrate queues into your programs, no matter what programming language you are working in.
- If you, your friend, and your roommate…all send information to the printer…it will print out the information it received first.…In operating systems queues are often used…for controlling access to shared system resources…such as printers, files, communication lines,…disks and tapes.…They are also very commonly used…in multi-threading and concurrency situations…to keep track of what tasks are waiting…to be performed and making sure we take them in that order.…Now queues work differently depending on…which language you use them in.…
We could implement them with a linked list…or a dynamic array.…In C# we have a queue class…where we can enqueue and dequeue.…In Python we have a queue class…where we use the functions put and get…instead of enqueue and dequeue.…Python is targeted for working with threading…so you'll see a lot of terminology…talking about thread synchronization.…This is the same with Ruby which uses queues…for synchronizing communication across threads.…If you want standard queue functionality…you can use the standard Ruby array class,…
- Data types: Booleans, numbers, strings, and more
- Multidimensional arrays
- Jagged arrays
- Search and sort arrays
- Linked lists
- Stacks and queues
- Hash functions and hash tables
- Trees and graphs
Skill Level Intermediate
Understand data structures1m 25s
1. Introduction to Data Structures
4. Stacks and Queues
5. Hash-Based Data Structures
6. Trees and Graphs
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.