Bifalgorithm post

"This is a CPU, this is a GPU. What's the difference? A CPU has a few powerful cores that runs instructions sequentially, one after other and very fast, while a GPU has thousands of smaller cores that runs tasks in parallel and all at once. This is RAM, this is VRAM. What's the difference? Random access memory holds the program that your CPU is running right now, while VRAM or GPU memory holds the data that GPU will process. Like AI model way. This is a process, this is a thread. What's the difference? A process gets its own private memory, so if it crashes, others are safe, while threads share memory inside the same process so that they can talk faster. But one bad thread can sync the whole thing. This is multi-threading, this is multi-processing. What's the difference? Multi-threading runs multiple threads inside the same process. sharing memory for faster communication. While multi-processing runs multiple independent processes with separate memory for better isolation. This is concurrency. This is parallelism. What's the difference? Concurrency is one worker juggling multiple tasks by switching between them. While parallelism is many workers each handling a task at the same moment. This is synchronous execution. This is asynchronous execution. What's the difference? Synchronous execution makes your program stop and wait until the task finishes. While asynchronous execution lets it continue doing other work until the results are ready. This is a cue. This is a... PupSub. What's the difference? A queue sends each message to one consumer. While in Publisher Subscriber Architecture, the system sends the message to every consumer who wants it. This is a request-driven system. This is an event-driven system. What's the difference? A request-driven system only responds when someone asks for something, while an event-driven system automatically reacts whenever an event happens. This is stateless API and this is session-based API. What's the difference? A stateless API treats every request as completely independent, requiring all the information to be sent with each request, while Session-based API remembers information about previous requests by storing session-based data on servers."

"This is a CPU, this is a GPU. What's the difference? A CPU has a few powerful cores that runs instructions sequentially, one after other and very fast, while…

Ideas in this flowchart

  • Differences in Computing Concepts
  • CPU vs GPU
  • CPU
  • Few powerful cores
  • Sequential execution
  • GPU
  • Thousands of smaller cores
  • Parallel execution
  • RAM vs VRAM
  • RAM
  • Holds CPU program data
  • VRAM
  • Holds GPU data
  • Process vs Thread
  • Process
  • Private memory
  • Thread
  • Shared memory
  • Multi-threading vs Multi-processing
  • Multi-threading
  • Multiple threads, shared memory
  • Multi-processing
  • Multiple processes, separate memory
  • Concurrency vs Parallelism
  • Concurrency
  • Task juggling
  • Parallelism
  • Simultaneous task handling
  • Synchronous vs Asynchronous Execution
  • Synchronous
  • Waits for task completion
  • Asynchronous
  • Continues other work
  • Queue vs PubSub
  • Queue
  • One message to one consumer
  • PubSub
  • Message to multiple consumers
  • Request-driven vs Event-driven System
  • Request-driven
Feed/

"This is a CPU, this is a GPU. What's the difference? A CPU has a few powerful cores that runs instructions sequentially, one after other and very fast, while a GPU has thousands of smaller cores that runs tasks in parallel and all at once. This is RAM, this is VRAM. What's the difference? Random access memory holds the program that your CPU is running right now, while VRAM or GPU memory holds the data that GPU will process. Like AI model way. This is a process, this is a thread. What's the difference? A process gets its own private memory, so if it crashes, others are safe, while threads share memory inside the same process so that they can talk faster. But one bad thread can sync the whole thing. This is multi-threading, this is multi-processing. What's the difference? Multi-threading runs multiple threads inside the same process. sharing memory for faster communication. While multi-processing runs multiple independent processes with separate memory for better isolation. This is concurrency. This is parallelism. What's the difference? Concurrency is one worker juggling multiple tasks by switching between them. While parallelism is many workers each handling a task at the same moment. This is synchronous execution. This is asynchronous execution. What's the difference? Synchronous execution makes your program stop and wait until the task finishes. While asynchronous execution lets it continue doing other work until the results are ready. This is a cue. This is a... PupSub. What's the difference? A queue sends each message to one consumer. While in Publisher Subscriber Architecture, the system sends the message to every consumer who wants it. This is a request-driven system. This is an event-driven system. What's the difference? A request-driven system only responds when someone asks for something, while an event-driven system automatically reacts whenever an event happens. This is stateless API and this is session-based API. What's the difference? A stateless API treats every request as completely independent, requiring all the information to be sent with each request, while Session-based API remembers information about previous requests by storing session-based data on servers."

"CPU, GPU"

👍
0
0 comments0 shares

Sign in to view and post comments.