From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: fibers,questions about thread id and mutation of vectors Date: Fri, 6 Jan 2023 11:20:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23714"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Jan 06 11:20:46 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDjqA-00061n-9B for guile-user@m.gmane-mx.org; Fri, 06 Jan 2023 11:20:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDjpm-0002m7-Ij; Fri, 06 Jan 2023 05:20:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDjpl-0002ls-D8 for guile-user@gnu.org; Fri, 06 Jan 2023 05:20:21 -0500 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDjpj-0000l2-Qa for guile-user@gnu.org; Fri, 06 Jan 2023 05:20:21 -0500 Original-Received: by mail-ej1-x630.google.com with SMTP id x22so2465372ejs.11 for ; Fri, 06 Jan 2023 02:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=RZPd+el2pzyy3dqwoz9BJwEzPv/0dR0zG0QQ2epJPKw=; b=p4Hz0KfLpOR1tRsIyumDyotZSwieVzoT4QNrYCJi70+Lsy/TYUZNynXmj7ExEqihCR GJ1FSJLtfiDAJlDrx1+T5niSfT9R1n/nJZV2rLSl91aBHFQsihJVBd/LM0Rj/8ieuJFT xnBGz4EAfUgPj0krZENbdYmHNLOhos7aDSHHS82bWxMcadG48trwqJLHu5hvTWRQ3gD5 n8gY44YUd9/INYKMHjN2ItjlmRCrdiXSud6IrIOhVYZmaKALfp2tcq9guMfEru/KE0iQ kMQki5JjU+ctwYou5IdhFFfxDwiXTfg8mF6A24ziAZjzhpkdFls/caiNFwJeJZsYGoDv sK6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RZPd+el2pzyy3dqwoz9BJwEzPv/0dR0zG0QQ2epJPKw=; b=oEs6M6mYKw9icQ6ftm66eVfJtXm/Gxt8EmUS2mEA3uP0LHlNgpEbpHxX+sv/N5VlWL m+DE6UgoeIoeNpLvBykCeZ2Aau2714nyEyDtIlaen/UWtO/F4qwvOQo2vSwBuQmVtkF+ 9qeiqrHCQfIq+bNETjW5bgGoqtH2XsesQfERUxit+3OelPSUBUosoAYErFmPg1c9ruLe qWmAyXxoMmOwJoj/IQXMKpSL/6RZaLpE7DVesaMikRMqXJtzuMEnYZWkEL6oTn7WTMY1 lmlH4zcEGkwlj63axCp1tAADECK+kRiXNdVI6Ei60ZHtDjbUet7vwAxHozQZO2zC9Jdo OyiA== X-Gm-Message-State: AFqh2kqKhbms7QMgK7Qa4dbBmAyxqWqsi1xw93CXNZ8e2pASWSqhiieJ jPqhdYpULOKwQfnuNEw9K/6C4vztCYrGevSSA4fO9fN2Oyo= X-Google-Smtp-Source: AMrXdXvX9rw6GZEtr4paBQmylIjL+T+PcyDSu9TGpE8S3h7EZcz2FwLyVws4T4NTNgXNUKdS6D5ENkxJyiqrGb7bQzM= X-Received: by 2002:a17:906:f43:b0:84c:95c7:304d with SMTP id h3-20020a1709060f4300b0084c95c7304dmr3227786ejj.545.1673000417042; Fri, 06 Jan 2023 02:20:17 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=damien.mattei@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18838 Archived-At: Hi, is fibers having a way to know the thread number the code is running? i, mean the equivalent of omp_get_thread_num(); in openMP. Does vector-set! (i read the mutation section of the docand i suppose it is wrapped/rewritten for fibers) in fibers let many thread access a vector without time penalty if the index access are differents? (because if index are different there is no real concurrency) Regards, Damien