不会吧,在mysql 处就是串行了,只能一个一个的处理。

解决方案 »

  1.   

    PHP不怎么支持多线程的,肯定是有先有后的!
    如果同时提交的话,数据量过大有可能会让Mysql崩溃的!
      

  2.   

    WINXP+APACHE+PHP+MYSQLWINXP+APACHE就注定了高负载会有问题WINSERVER+IIS 或者LINUX+APACHE 都没问题仔细算算 100个终端每个业务时间10秒 那每秒只有10个并发而且业务时间不止10秒所以并发会更少MYSQL没有想象中的弱 这个免费数据库只是不支持一些特性 就速度和承载量来说和大型商业数据库差不到哪去
      

  3.   

    apache的bin目录下,有个名为ab的文件,我们通常称它为ab测试。它能够模拟http请求,并post参数之类。并能创建多线程。另外,用linux下的curl也可以。用这两个工具都可以模拟100人进行注册,登录,发表帖子之类的操作。具体使用方法你去google一下。
      

  4.   

    apache这样的web服务器来保证并发,php不关心这些还有就是数据库,MySQL可以使用事务操作。
      

  5.   

    Load Runner 好像可以做到,你可以试下。
      

  6.   

    用AB进行测试,结果如下(好像是说测试通过,不知是否):
    ab -c 60 -n 100 http://127.0.0.1/abcs.phpThis is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
    Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/Benching 127.0.0.1 (be patient).....done
    Server Software:        Apache/2.0.55
    Server Hostname:        127.0.0.1
    Server Port:            80Document Path:          /adcs.php
    Document Length:        0 bytesConcurrency Level:      60
    Time taken for tests:   0.187500 seconds
    Complete requests:      100
    Failed requests:        0
    Write errors:           0
    Total transferred:      18500 bytes
    HTML transferred:       0 bytes
    Requests per second:    533.33 [#/sec] (mean)
    Time per request:       112.500 [ms] (mean)
    Time per request:       1.875 [ms] (mean, across all concurrent requests)
    Transfer rate:          96.00 [Kbytes/sec] receivedConnection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.0      0       0
    Processing:    15   76  32.6     93     125
    Waiting:       15   75  33.7     93     125
    Total:         15   76  32.6     93     125Percentage of the requests served within a certain time (ms)
      50%     93
      66%     93
      75%    109
      80%    109
      90%    109
      95%    109
      98%    125
      99%    125
     100%    125 (longest request)