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

  • Home
  • SEARCH
  • 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 7765275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:07:37+00:00 2026-06-01T15:07:37+00:00

I need a cross-platform solution for multi-thread to write to a same file concurrently

  • 0

I need a cross-platform solution for multi-thread to write to a same file concurrently, at least Windows and Mac OS X. Different thread write to different file region.

The file is a little large. May be several GB or several hundred MB. So MMF doesn’t fit right.

QFile is a cross-platform overlap. I have searched the QFile document, there isn’t a share write option.

Under Windows, this can be done by CreateFile using FILE_SHARE_WRITE option. What about Mac OS X?

Does Qt support this or I should do my own encapsulation? How to do this under Mac OS X?

  • 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-01T15:07:38+00:00Added an answer on June 1, 2026 at 3:07 pm

    You could use QFile with a QReadWriteLock (documentation).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We need a cross platform solution for compressing files. Our server runs on Windows
I need to write cross-platform GUI application, what toolkit can I use? Currently I
I need to write cross platform application (basically CRUD). Is usage of Java Swing
I need a cross platform solution for clearing the console in both Linux and
I need a cross-platform library/algorithm that will convert between 32-bit and 16-bit floating point
I need a simple application, preferably a cross-platform one, that enables sending of files
If I'm working on a cross-platform project that uses dbus-java, what do I need
I'm working on a cross-platform solution currently. The solution uses XmlMtomReader and XmlMtomWriter from
We are looking to use JSON.NET.net on a cross platform solution. Given the structure
I am wanting to write some cross-platform library code. I am creating a library

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.