Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8601279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:48:21+00:00 2026-06-12T01:48:21+00:00

On most servers running in console mode, the admin is allowed to type in

  • 0

On most servers running in console mode, the admin is allowed to type in commands while the server is also outputting text like player deaths, etc.

I was just wondering how to replicate this effect. I have searched all over the place and don’t even have the slightest idea on how it’s done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:48:22+00:00Added an answer on June 12, 2026 at 1:48 am

    You need to learn about threads.

    All programs have at least a thread, but most console applications only have one. This way, a program can only do one thing at a time.

    Imagine a program with two threads as two programs that work together towards a goal.

    You can create one thread that does the computing, one that prints all the output and one that keeps reading data from the keyboard. This will create a program that can write and read at the same time.

    Also, keep in mind that you need to use a multi-processor machine in order for threads to offer true parallelism to your program.

    Here is a ruby example that can read and write data from/to the console at the same time:

    a = Thread.new do
      while true do
        puts "Hi There!"
        sleep(1)
      end
    end
    
    b = Thread.new do
      while true do
        puts gets.strip+"!"
      end
    end
    a.join
    b.join
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I'm running a cluster with two Weblogic server nodes on two servers
I know $_SERVER['DOCUMENT_ROOT'] returns the document root (most likely something like /home/user/public_html), but is
Where is the most secure place to store sensitive code on a server (ex,
What would be the most sensible choice for building a socket server application, assuming
I'm about to write server side aplication(most probably it would be PHP but JAVA
There was a recent change on the server I do most of my work
I am having an issue with the most simple command in SQL Server Management.
I'm trying to implement a socket server that will run in most shared PHP
I'm working on an application that requires a server to do most of the
I found several answers and solutions, but most of it somehow integrated server-side helper.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.