多线程排序_如何使用多个线程进行排序以更快地运行?

多线程排序sort supports --parallel N to run N thread. However, it seems it only uses around 100% CPU as I observed although the command specified that N threads can be used. sort支持--parallel N运行N 线程 。 但是,尽...
摘要由CSDN通过智能技术生成

多线程排序

sort supports --parallel N to run N thread. However, it seems it only uses around 100% CPU as I observed although the command specified that N threads can be used.

sort支持--parallel N运行N 线程 。 但是,尽管该命令指定可以使用N个线程,但据我观察,它似乎仅使用大约100%的CPU。

The command is as follows

命令如下

cat large-file | sort --parallel `nproc`

where I have 16 from nproc.

我有16个来自nproc

How to make sort use multiple threads to run faster?

如何使排序使用多个线程来更快地运行?

It is pos

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值